Class: OmniAuth::Strategies::Heimdall
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Heimdall
- Defined in:
- lib/omniauth/stategies/heimdall.rb
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
28 29 30 31 32 |
# File 'lib/omniauth/stategies/heimdall.rb', line 28 def callback_url # If redirect_uri is configured in token_params, use that # value. token_params.to_hash(:symbolize_keys => true)[:redirect_uri] || super end |
#query_string ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/omniauth/stategies/heimdall.rb', line 34 def query_string # This method is called by callback_url, only if redirect_uri # is omitted in token_params. if request.params["code"] # If this is a callback, ignore query parameters added by # the provider. "" else super end end |
#raw_info ⇒ Object
24 25 26 |
# File 'lib/omniauth/stategies/heimdall.rb', line 24 def raw_info @raw_info ||= access_token.get('/me.json').parsed end |