Class: CommandTower::Auth::SessionController

Inherits:
CommandTower::ApplicationController show all
Includes:
AuthenticationBoundary, AuthorizationBoundary
Defined in:
app/controllers/command_tower/auth/session_controller.rb

Constant Summary

Constants inherited from CommandTower::ApplicationController

CommandTower::ApplicationController::AUTHENTICATION_EXPIRE_HEADER, CommandTower::ApplicationController::AUTHENTICATION_HEADER, CommandTower::ApplicationController::AUTHENTICATION_WITH_RESET

Instance Method Summary collapse

Methods inherited from CommandTower::ApplicationController

#authenticate_user!, #authenticate_user_without_email_verification!, #authorize_user!, #current_user, #safe_boolean

Instance Method Details

#showObject



12
13
14
15
16
17
18
# File 'app/controllers/command_tower/auth/session_controller.rb', line 12

def show
  result = CommandTower::Workflows::Auth::Session::ShowWorkflow.call(
    current_user: current_user,
    auth_context: current_auth_context
  )
  render_application_result(result)
end