Module: TokenAuthenticateMe::Concerns::Controllers::Authenticateable

Extended by:
ActiveSupport::Concern
Included in:
SessionAuthenticateable, TokenAuthenticateable
Defined in:
lib/token_authenticate_me/concerns/controllers/authenticateable.rb

Instance Method Summary collapse

Instance Method Details

#token_handler(token, options) ⇒ Object

Standard authentication routine, override to implement different auth strategies.



15
16
17
18
# File 'lib/token_authenticate_me/concerns/controllers/authenticateable.rb', line 15

def token_handler(token, options)
  authentication = TokenAuthenticateMe::Authentication.new(token: token)
  authentication.authenticate(options)
end