Class: FlexmlsApi::Authentication::OAuth2Impl::PasswordProvider
Instance Attribute Summary
#code, #grant_type
Instance Method Summary
collapse
#redirect, #session_timeout
Constructor Details
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_session ⇒ Object
19
20
21
|
# File 'lib/flexmls_api/authentication/oauth2_impl/password_provider.rb', line 19
def destroy_session
@session = nil
end
|
#load_session ⇒ Object
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
|