Class: SparkApi::Authentication::SimpleProvider
Instance Attribute Summary
#code, #grant_type
Instance Method Summary
collapse
#redirect, #session_timeout
Constructor Details
Returns a new instance of SimpleProvider.
4
5
6
7
|
# File 'lib/spark_api/authentication/oauth2_impl/simple_provider.rb', line 4
def initialize(credentials)
super(credentials)
@grant_type = :authorization_code
end
|
Instance Method Details
#destroy_session ⇒ Object
17
18
19
|
# File 'lib/spark_api/authentication/oauth2_impl/simple_provider.rb', line 17
def destroy_session
@session = nil
end
|
#load_session ⇒ Object
9
10
11
|
# File 'lib/spark_api/authentication/oauth2_impl/simple_provider.rb', line 9
def load_session
@session
end
|
#save_session(session) ⇒ Object
13
14
15
|
# File 'lib/spark_api/authentication/oauth2_impl/simple_provider.rb', line 13
def save_session session
@session = session
end
|