module TCellAgent::DoorkeeperInstrumentation::TCellAuthorizationsNew
Public Instance Methods
new()
click to toggle source
Calls superclass method
# File lib/tcell_agent/rails/auth/doorkeeper.rb, line 46 def new super if defined?(super) TCellAgent::Instrumentation.safe_block('Doorkeeper Token Authorize') do return unless TCellAgent.configuration.should_intercept_requests? return unless pre_auth.error login_policy = TCellAgent.policy(TCellAgent::PolicyTypes::LOGINFRAUD) tcell_data = request.env[TCellAgent::Instrumentation::TCELL_ID] return unless tcell_data user_id = current_resource_owner.id password = nil headers = request.env user_valid = nil login_policy.report_login_failure( user_id, password, headers, user_valid, tcell_data ) end end