OpenID Connect Logout​
This endpoint handles the user logout process in Quran.Foundation's OAuth2 & OpenID Connect system. When called, it:
- Ends the user's current session
- Revokes associated access and refresh tokens
To redirect users back to your app after logout, include post_logout_redirect_uri. The redirect URI must be pre-registered in your OAuth2 client configuration. Post-logout redirect: If you pass post_logout_redirect_uri, you must also include id_token_hint (the ID token from the login response). Requests with post_logout_redirect_uri but without id_token_hint will be rejected.
The logout process follows the OpenID Connect specifications:
Query Parameters
The ID token received during authentication. Required when post_logout_redirect_uri is provided; otherwise optional but recommended for identifying the user session.
Where to redirect the user after logout. Must be pre-registered in your OAuth2 client's post_logout_redirect_uris. Requires id_token_hint (the ID token from the login response); requests with this parameter but without id_token_hint will be rejected.
Opaque value passed back to the post_logout_redirect_uri for CSRF protection.
- 302
Successful logout. The user will be redirected to complete the logout process.