Class: StandardId::Api::Oidc::LogoutController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- StandardId::Api::Oidc::LogoutController
- Includes:
- ActionController::Cookies
- Defined in:
- app/controllers/standard_id/api/oidc/logout_controller.rb
Constant Summary
Constants included from RateLimitHandling
RateLimitHandling::RATE_LIMIT_STORE
Instance Method Summary collapse
Methods included from ControllerPolicy
all_controllers, authenticated_controllers, public_controllers, register, registry_snapshot, reset_registry!
Instance Method Details
#show ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/standard_id/api/oidc/logout_controller.rb', line 11 def show session_manager.revoke_current_session! if redirect_uri_with_state.present? redirect_to redirect_uri_with_state, allow_other_host: true, status: :found else render json: { message: "You have been logged out" }, status: :ok end end |