Class: CommandTower::Workflows::Auth::LogoutWorkflow
- Inherits:
-
CommandTower::Workflows::ApplicationWorkflow
- Object
- CommandTower::Workflows::ApplicationWorkflow
- CommandTower::Workflows::Auth::LogoutWorkflow
- Defined in:
- app/workflows/command_tower/workflows/auth/logout_workflow.rb
Constant Summary
Constants inherited from CommandTower::Workflows::ApplicationWorkflow
CommandTower::Workflows::ApplicationWorkflow::ALLOWED_RETRY_STRATEGIES, CommandTower::Workflows::ApplicationWorkflow::InvalidTransactionResult, CommandTower::Workflows::ApplicationWorkflow::TransactionFailure
Instance Method Summary collapse
Methods inherited from CommandTower::Workflows::ApplicationWorkflow
call, call_from_job, continuation_max_attempts, declared_retry_strategy, mark_impersonation_activity!, retry_strategy, validate_retry_strategy!
Methods included from Impersonation::ActivityDeclaration
Methods included from Logging::LifecycleDeclaration
Methods included from Execution::ContextAccess
#audit, #execution_context, #log_debug, #log_error, #log_info, #log_warn, #publish_event
Methods included from Transactional
#fail_transaction!, #transaction
Instance Method Details
#call(token: nil) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'app/workflows/command_tower/workflows/auth/logout_workflow.rb', line 9 def call(token: nil) maybe_audit_session_cleared(token) success( payload: CommandTower::Serializers::Auth::LogoutResponseSerializer.serialize, http_status: :ok, response_effects: { clear_token: true } ) end |