Skip to main content

end_session

Function end_session 

Source
pub async fn end_session(
    __arg0: State<ApiState>,
    __arg1: Query<EndSessionRequest>,
) -> impl IntoResponse
Expand description

OIDC RP-Initiated Logout (OpenID Connect RP-Initiated Logout 1.0).

Revokes the token from id_token_hint (if valid) and, when a registered post_logout_redirect_uri is provided, redirects the user-agent there.

§Example

// GET /oauth/end_session?id_token_hint=eyJ...&state=xyz
let resp = end_session(State(state), Query(params)).await;