Class: OmniAuth::Strategies::Atech

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/atech.rb

Direct Known Subclasses

Codebase

Instance Method Summary collapse

Instance Method Details

#email_addressObject

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_infoObject

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.options[:mode] = :query
     access_token.options[:param_name] = 'oauth_token'
     access_token.get('oauth/api/profile').parsed
  end
end