Class: Stormpath::Rails::AccountLoginWithStormpathToken

Inherits:
Object
  • Object
show all
Defined in:
app/services/stormpath/rails/account_login_with_stormpath_token.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cookie_jar, account, application, api_key) ⇒ AccountLoginWithStormpathToken

Returns a new instance of AccountLoginWithStormpathToken.



8
9
10
11
12
13
# File 'app/services/stormpath/rails/account_login_with_stormpath_token.rb', line 8

def initialize(cookie_jar, , application, api_key)
  @cookie_jar   = cookie_jar
  @account      = 
  @application  = application
  @api_key      = api_key
end

Class Method Details

.call(cookie_jar, account, application, api_key) ⇒ Object



4
5
6
# File 'app/services/stormpath/rails/account_login_with_stormpath_token.rb', line 4

def self.call(cookie_jar, , application, api_key)
  new(cookie_jar, , application, api_key).call
end

Instance Method Details

#callObject



15
16
17
# File 'app/services/stormpath/rails/account_login_with_stormpath_token.rb', line 15

def call
  TokenCookieSetter.call(cookie_jar, authentication_result)
end