Class: CommandTower::Auth::PrincipalCapabilitiesController

Inherits:
CommandTower::ApplicationController show all
Includes:
AuthenticationBoundary, AuthorizationBoundary
Defined in:
app/controllers/command_tower/auth/principal_capabilities_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
# File 'app/controllers/command_tower/auth/principal_capabilities_controller.rb', line 12

def show
  render_application_result(
    CommandTower::Workflows::Auth::PrincipalCapabilities::ShowWorkflow.call(user: current_user)
  )
end