class TokenAuthenticateMe::HeaderAuthentication
Attributes
controller[R]
Public Class Methods
new(controller:)
click to toggle source
# File lib/token_authenticate_me/header_authentication.rb, line 5 def initialize(controller:) @controller = controller end
Public Instance Methods
authenticate(options = {})
click to toggle source
# File lib/token_authenticate_me/header_authentication.rb, line 9 def authenticate(options = {}) controller.authenticate_with_http_token(&method(:token_handler)) end
Private Instance Methods
token_handler(token, options)
click to toggle source
# File lib/token_authenticate_me/header_authentication.rb, line 15 def token_handler(token, options) token_handler = controller.token_handler(token, options) end