module Sso::Doorkeeper::OAuth::Base
Public Instance Methods
after_successful_response()
click to toggle source
Calls superclass method
# File lib/sso/doorkeeper/oauth/base.rb, line 16 def after_successful_response self.sso_client.update_attributes(access_token_id: @access_token.id) super end
sso_client()
click to toggle source
# File lib/sso/doorkeeper/oauth/base.rb, line 7 def sso_client return @sso_client if @sso_client user = User.find(@access_token.resource_owner_id) attributes = { ip: request.ip, agent: request.user_agent } sso_session = Sso::Session.generate_master(user, attributes) @sso_client = sso_session.clients.last end