Class: OmniAuth::Strategies::Icalia
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Icalia
- Defined in:
- lib/omniauth/strategies/icalia.rb
Constant Summary collapse
- INFO_PATH =
'/oauth/token/info?include=resource-owner.email-accounts'
Instance Method Summary collapse
- #authorize_params ⇒ Object
- #callback_url ⇒ Object
- #raw_info ⇒ Object
- #request_phase ⇒ Object
- #scope ⇒ Object
Instance Method Details
#authorize_params ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/omniauth/strategies/icalia.rb', line 19 def super.tap do |params| %w[scope client_options].each do |v| if request.params[v] params[v.to_sym] = request.params[v] end end end end |
#callback_url ⇒ Object
56 57 58 |
# File 'lib/omniauth/strategies/icalia.rb', line 56 def callback_url full_host + script_name + callback_path end |
#raw_info ⇒ Object
47 48 49 50 |
# File 'lib/omniauth/strategies/icalia.rb', line 47 def raw_info access_token.[:mode] = :header @raw_info ||= fetch_user_info end |
#request_phase ⇒ Object
15 16 17 |
# File 'lib/omniauth/strategies/icalia.rb', line 15 def request_phase super end |
#scope ⇒ Object
52 53 54 |
# File 'lib/omniauth/strategies/icalia.rb', line 52 def scope access_token['scope'] end |