Class: OmniAuth::Strategies::Atech
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Atech
- Defined in:
- lib/omniauth/strategies/atech.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#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
#email_address ⇒ Object
Return the user’s first e-mail address
43 44 45 |
# File 'lib/omniauth/strategies/atech.rb', line 43 def email_address raw_info['email_addresses'] && raw_info['email_addresses'].first end |
#raw_info ⇒ Object
Return all the raw information for the user
34 35 36 37 38 39 40 |
# File 'lib/omniauth/strategies/atech.rb', line 34 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 |