class HttpTokenAuthenticationTest
Constants
- AUTH_HEADERS
Private Instance Methods
encode_credentials(token, options = {})
click to toggle source
# File actionpack/test/controller/http_token_authentication_test.rb, line 213 def encode_credentials(token, options = {}) ActionController::HttpAuthentication::Token.encode_credentials(token, options) end
malformed_request()
click to toggle source
# File actionpack/test/controller/http_token_authentication_test.rb, line 201 def malformed_request mock_authorization_request(%{Token token=}) end
sample_request(token, options = { nonce: "def" })
click to toggle source
# File actionpack/test/controller/http_token_authentication_test.rb, line 194 def sample_request(token, options = { nonce: "def" }) authorization = options.inject([%{Token token="#{token}"}]) do |arr, (k, v)| arr << "#{k}=\"#{v}\"" end.join(", ") mock_authorization_request(authorization) end
sample_request_without_token_key(token)
click to toggle source
# File actionpack/test/controller/http_token_authentication_test.rb, line 205 def sample_request_without_token_key(token) mock_authorization_request(%{Token #{token}}) end