Class: CommandTower::Auth::ImpersonationSessionController
- Inherits:
-
CommandTower::ApplicationController
- Object
- ActionController::API
- CommandTower::ApplicationController
- CommandTower::Auth::ImpersonationSessionController
- Defined in:
- app/controllers/command_tower/auth/impersonation_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
#destroy ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/controllers/command_tower/auth/impersonation_session_controller.rb', line 11 def destroy result = CommandTower::Workflows::Impersonation::StopWorkflow.call( actor: current_auth_context.actor_user, impersonation_session_id: current_auth_context.impersonation_session_id, token_expires_at: current_auth_context.token_expires_at ) render_application_result(result) end |