Class: FlexmlsApi::Authentication::OAuth2Impl::PasswordProvider

Inherits:
BaseOAuth2Provider show all
Defined in:
lib/flexmls_api/authentication/oauth2_impl/password_provider.rb

Instance Attribute Summary

Attributes inherited from BaseOAuth2Provider

#code, #grant_type

Instance Method Summary collapse

Methods inherited from BaseOAuth2Provider

#redirect, #session_timeout

Constructor Details

#initialize(credentials) ⇒ PasswordProvider

Returns a new instance of PasswordProvider.



6
7
8
9
# File 'lib/flexmls_api/authentication/oauth2_impl/password_provider.rb', line 6

def initialize(credentials)
  super(credentials)
  @grant_type = :password
end

Instance Method Details

#destroy_sessionObject



19
20
21
# File 'lib/flexmls_api/authentication/oauth2_impl/password_provider.rb', line 19

def destroy_session
  @session = nil
end

#load_sessionObject



11
12
13
# File 'lib/flexmls_api/authentication/oauth2_impl/password_provider.rb', line 11

def load_session()
  @session
end

#save_session(session) ⇒ Object



15
16
17
# File 'lib/flexmls_api/authentication/oauth2_impl/password_provider.rb', line 15

def save_session(session)
  @session = session
end