Module: Instrumentation
- Extended by:
- ActiveSupport::Concern
- Includes:
- SignIn::Authentication
- Included in:
- ApplicationController
- Defined in:
- app/controllers/concerns/instrumentation.rb
Constant Summary
Constants included from SignIn::Authentication
SignIn::Authentication::BEARER_PATTERN
Instance Method Summary collapse
Methods included from SignIn::Authentication
#access_token, #access_token_authenticate, #authenticate, #authenticate_access_token, #bearer_token, #cookie_access_token, #handle_authenticate_error, #load_user, #load_user_object, #scrub_bearer_token, #validate_request_ip
Instance Method Details
#append_info_to_payload(payload) ⇒ Object (private)
9 10 11 12 13 14 15 16 |
# File 'app/controllers/concerns/instrumentation.rb', line 9 def append_info_to_payload(payload) if @access_token.present? payload[:session] = @access_token.session_handle elsif session && session[:token] payload[:session] = Session.obscure_token(session[:token]) end payload[:user_uuid] = current_user.uuid if current_user.present? end |