Add OIDC end session endpoint and custom query params
shawnhankim opened this issue · 0 comments
As a Product Manager,
I want to integrate with IdP's end session endpoint to terminate the user session on the IdP's side as the current NJS implementation clear the token itself, and the IdP's authenticated session still exists at the IdP. In addition to that I want to support the logout using the customizable variable regardless of different query parameters from each IdP.
AC:
-
Add a map variable of
$oidc_end_session_endpointas same as authorization and token endpoints in theopenid_connect_configuration.conf. -
Add a map variable of
$oidc_logout_landing_pageto determine where to redirect browser after successful logout from the IdP. -
Add a map variable of
$oidc_end_session_query_paramsto support different query parameters per each IdP. -
Enhanc
/logoutlocation:- Add query parameters using
$oidc_end_session_query_paramsfor the$oidc_end_session_endpoint. - NGINX Plus: cleared tokens.
- Redirected to the
$oidc_end_session_endpointto start ending session in the IdP.
- Add query parameters using
-
Enhanc
/_logoutlocation:- Redirected by IdP when IdP successfully finished the session.
- Clean cookies
- NGINX Plus: Redirect to the
$oidc_logout_landing_page.