class Models::Users::Authentication
Public Class Methods
from_omniauth(application_id, omniauth)
click to toggle source
# File lib/restpack_user_service/models/authentication.rb, line 14 def self.from_omniauth(application_id, omniauth) Authentication.new( application_id: application_id, provider: omniauth['provider'], uid: omniauth['uid'], omniauth: omniauth ) end
get_by_omniauth(application_id, omniauth)
click to toggle source
# File lib/restpack_user_service/models/authentication.rb, line 23 def self.get_by_omniauth(application_id, omniauth) Authentication.where( application_id: application_id, provider: omniauth['provider'], uid: omniauth['uid'] ).first end