Class: StandardId::Api::Oidc::LogoutController

Inherits:
BaseController
  • Object
show all
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

#showObject



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