Module: AuthlogicConnect::Oauth::Variables
- Included in:
- Process
- Defined in:
- lib/authlogic_connect/oauth/variables.rb
Instance Method Summary collapse
- #oauth_consumer ⇒ Object
- #oauth_key ⇒ Object
- #oauth_provider ⇒ Object
-
#oauth_response ⇒ Object
These are just helper variables.
- #oauth_token ⇒ Object
- #oauth_version ⇒ Object
Instance Method Details
#oauth_consumer ⇒ Object
22 23 24 |
# File 'lib/authlogic_connect/oauth/variables.rb', line 22 def oauth_consumer oauth_token.consumer end |
#oauth_key ⇒ Object
9 10 11 12 |
# File 'lib/authlogic_connect/oauth/variables.rb', line 9 def oauth_key return nil unless auth_controller oauth_version == 1.0 ? auth_params[:oauth_token] : auth_params[:code] end |
#oauth_provider ⇒ Object
18 19 20 |
# File 'lib/authlogic_connect/oauth/variables.rb', line 18 def oauth_provider auth_session[:oauth_provider] || "facebook" end |
#oauth_response ⇒ Object
These are just helper variables
5 6 7 |
# File 'lib/authlogic_connect/oauth/variables.rb', line 5 def oauth_response auth_params && oauth_key end |
#oauth_token ⇒ Object
26 27 28 |
# File 'lib/authlogic_connect/oauth/variables.rb', line 26 def oauth_token AuthlogicConnect.token(oauth_provider) end |
#oauth_version ⇒ Object
14 15 16 |
# File 'lib/authlogic_connect/oauth/variables.rb', line 14 def oauth_version oauth_token.oauth_version end |