Class: Omniauth::Rails::AuthenticationRequest
- Inherits:
-
Object
- Object
- Omniauth::Rails::AuthenticationRequest
- Defined in:
- app/models/omniauth/rails/authentication_request.rb
Instance Method Summary collapse
-
#initialize(request) ⇒ AuthenticationRequest
constructor
A new instance of AuthenticationRequest.
- #persist(authentication_session) ⇒ Object
Constructor Details
#initialize(request) ⇒ AuthenticationRequest
Returns a new instance of AuthenticationRequest.
5 6 7 |
# File 'app/models/omniauth/rails/authentication_request.rb', line 5 def initialize(request) @request = request end |
Instance Method Details
#persist(authentication_session) ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/models/omniauth/rails/authentication_request.rb', line 9 def persist(authentication_session) authentication_session.email = email extra_keys_to_store_in_session.each do |key| authentication_session.send("#{key}=", info.send(key.to_sym)) end authentication_session.expire_in(session_duration) end |