Class: OmniAuth::Strategies::Atech
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Atech
- Defined in:
- lib/omniauth/strategies/atech.rb
Instance Method Summary collapse
-
#callback_url ⇒ Object
Set the callback URL.
-
#email_address ⇒ Object
Return the user’s first e-mail address.
-
#raw_info ⇒ Object
Return all the raw information for the user.
Instance Method Details
#callback_url ⇒ Object
Set the callback URL
35 36 37 |
# File 'lib/omniauth/strategies/atech.rb', line 35 def callback_url full_host + script_name + callback_path end |
#email_address ⇒ Object
Return the user’s first e-mail address
49 50 51 |
# File 'lib/omniauth/strategies/atech.rb', line 49 def email_address raw_info['email_addresses'] && raw_info['email_addresses'].first end |
#raw_info ⇒ Object
Return all the raw information for the user
40 41 42 43 44 45 46 |
# File 'lib/omniauth/strategies/atech.rb', line 40 def raw_info @raw_info ||= begin access_token.[:mode] = :query access_token.[:param_name] = 'oauth_token' access_token.get('oauth/api/profile').parsed end end |