Class: User::Identities::OAuth

Inherits:
User::Identity show all
Extended by:
OauthBuildCreateAndFind
Includes:
SupportSegment::StiHelpers
Defined in:
app/models/user/identities/o_auth.rb

Direct Known Subclasses

Facebook, Github, Twitter

Class Method Summary collapse

Instance Method Summary collapse

Methods included from OauthBuildCreateAndFind

build_identity, find_from_omniauth, find_identity, find_or_build_from_omniauth, initialize_from_omniauth

Methods inherited from User::Identity

deserialize, deserialize!, #serialize

Class Method Details

.callbackObject



52
53
54
# File 'app/models/user/identities/o_auth.rb', line 52

def self.callback
  OAuthCallback.new(self.name.underscore.to_sym)
end

Instance Method Details

#ominauth_data=(new_ominauth_data) ⇒ Object



60
61
62
63
# File 'app/models/user/identities/o_auth.rb', line 60

def ominauth_data= new_ominauth_data
  self.uid = new_ominauth_data[:uid]
  self.handle = new_ominauth_data[:info][:name]
end