Class: Omniauth::Rails::AuthenticationRequest

Inherits:
Object
  • Object
show all
Defined in:
app/models/omniauth/rails/authentication_request.rb

Instance Method Summary collapse

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