Class: LsOmniauth::AuthSessions

Inherits:
Object
  • Object
show all
Defined in:
app/models/ls_omniauth/auth_sessions.rb

Constant Summary collapse

AUTH_SESSION_KEY =
"ls_auth_user"
AUTH_REQUEST_ORIGIN =
"ls_auth_request_origin"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(session) ⇒ AuthSessions

Returns a new instance of AuthSessions.



6
7
8
9
# File 'app/models/ls_omniauth/auth_sessions.rb', line 6

def initialize(session)
  @auth   = LsOmniauth::AbstractSession.new(session, AUTH_SESSION_KEY)
  @origin = LsOmniauth::AbstractSession.new(session, AUTH_REQUEST_ORIGIN)
end

Instance Attribute Details

#authObject (readonly)

Returns the value of attribute auth.



5
6
7
# File 'app/models/ls_omniauth/auth_sessions.rb', line 5

def auth
  @auth
end

#originObject (readonly)

Returns the value of attribute origin.



5
6
7
# File 'app/models/ls_omniauth/auth_sessions.rb', line 5

def origin
  @origin
end