Module: Socialite::Models::IdentityConcern

Extended by:
ActiveSupport::Concern
Defined in:
lib/socialite/models/identity_concern.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#access_tokenObject

Convenience method for accessing the OAuth access token

(see #credentials)


37
38
39
# File 'lib/socialite/models/identity_concern.rb', line 37

def access_token
  credentials['token']
end

#access_token_secretObject

Convenience method for accessing the OAuth access token secret

(see #credentials)


45
46
47
# File 'lib/socialite/models/identity_concern.rb', line 45

def access_token_secret
  credentials['secret']
end

#credentialsObject

Convenience method for accessing the OAuth credentials sub-hash

(see #access_token) (see #access_token_secret)


54
55
56
# File 'lib/socialite/models/identity_concern.rb', line 54

def credentials
  auth_hash['credentials']
end

#infoObject

Convenience method for accessing the user information from the OAuth provider.


70
71
72
# File 'lib/socialite/models/identity_concern.rb', line 70

def info
  auth_hash['info']
end

#nicknameObject

Convenience method for accessing the nickname, which is typically set to the login name used for that provider.


62
63
64
# File 'lib/socialite/models/identity_concern.rb', line 62

def nickname
  info['nickname']
end