Skip to main content

End session

The End session endpoint implements the OpenID Connect RP-Initiated Logout 1.0 specification, allowing relying parties to request that the OpenID Provider terminate a user's session. The endpoint accepts an id_token_hint JWT to identify the session, an optional post_logout_redirect_uri for the final redirect, and an optional opaque state value that is echoed back in the redirect for CSRF protection. nevisAuth kills a session only when the hint identifies the caller's own OP session, or when the caller confirms logout of that same session. Confirmation does not kill the user's other sessions. logout_hint is not a kill key. A kill triggers back-channel logout sender to registered clients via the BCL mechanism. The caller is the session named by a signature-valid SecToken sent as Authorization: Basic. This applies only when nevisAuth is the OpenID Provider. A front-end such as nevisProxy must derive that SecToken from the login cookie and the published end_session_endpoint must be that front-end path. Without it, a logged-in user who confirms logout is not logged out. The post_logout_redirect_uri is validated against the URIs registered for the client, either in the AuthorizationServer client store or, when authstates is not set, in client.<clientId>.postLogoutRedirectUris. Both GET and POST variants are supported as required by the specification.