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