Class: SignIn::ApplicationController

Inherits:
ActionController::API
  • Object
show all
Includes:
ActionController::Cookies, ExceptionHandling, Headers, Pundit::Authorization, SentryControllerLogging, SentryLogging, Authentication, Instrumentation, Traceable
Defined in:
app/controllers/sign_in/application_controller.rb

Constant Summary

Constants included from ExceptionHandling

ExceptionHandling::SKIP_SENTRY_EXCEPTION_TYPES

Constants included from Authentication

SignIn::Authentication::BEARER_PATTERN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Traceable

#set_trace_tags

Methods included from SentryControllerLogging

#set_tags_and_extra_context, #tags_context, #user_context

Methods included from SentryLogging

#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger, #set_sentry_metadata

Methods included from Headers

#set_app_info_headers

Methods included from ExceptionHandling

#render_errors, #report_mapped_exception, #report_original_exception, #skip_sentry_exception?, #skip_sentry_exception_types

Methods included from Instrumentation

#append_info_to_payload, #session

Methods included from 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 Attribute Details

#current_userObject (readonly, private)

Returns the value of attribute current_user.



24
25
26
# File 'app/controllers/sign_in/application_controller.rb', line 24

def current_user
  @current_user
end

Instance Method Details

#cors_preflightObject



18
19
20
# File 'app/controllers/sign_in/application_controller.rb', line 18

def cors_preflight
  head(:ok)
end