Module: EasyAuth::Models::Identities::Oauth2::Google

Included in:
Identities::Oauth2::Google
Defined in:
lib/easy_auth/models/identities/oauth2/google.rb

Instance Method Summary collapse

Instance Method Details

#account_attributes_mapObject



2
3
4
# File 'lib/easy_auth/models/identities/oauth2/google.rb', line 2

def 
  { :email => 'email', :first_name => 'given_name', :last_name => 'family_name', :name => 'name' }
end

#account_attributes_urlObject



14
15
16
# File 'lib/easy_auth/models/identities/oauth2/google.rb', line 14

def 
  'https://www.googleapis.com/oauth2/v1/userinfo'
end

#authorize_urlObject



6
7
8
# File 'lib/easy_auth/models/identities/oauth2/google.rb', line 6

def authorize_url
  '/o/oauth2/auth'
end

#oauth2_scopeObject



10
11
12
# File 'lib/easy_auth/models/identities/oauth2/google.rb', line 10

def oauth2_scope
  'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email'
end

#retrieve_uid(account_attributes) ⇒ Object



26
27
28
# File 'lib/easy_auth/models/identities/oauth2/google.rb', line 26

def retrieve_uid()
  ['email']
end

#site_urlObject



22
23
24
# File 'lib/easy_auth/models/identities/oauth2/google.rb', line 22

def site_url
  'https://accounts.google.com'
end

#token_urlObject



18
19
20
# File 'lib/easy_auth/models/identities/oauth2/google.rb', line 18

def token_url
  '/o/oauth2/token'
end