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

Inherits:
BaseController
  • Object
show all
Includes:
ActionController::Cookies
Defined in:
app/controllers/standard_id/api/oidc/logout_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



9
10
11
12
13
14
15
16
17
# File 'app/controllers/standard_id/api/oidc/logout_controller.rb', line 9

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