-
Notifications
You must be signed in to change notification settings - Fork 94
Add OIDC end session endpoint and custom query params #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,18 @@ map $host $oidc_jwt_keyfile { | |
default "http://127.0.0.1:8080/auth/realms/master/protocol/openid-connect/certs"; | ||
} | ||
|
||
map $host $oidc_end_session_endpoint { | ||
default "http://127.0.0.1:8080/auth/realms/master/protocol/openid-connect/logout"; | ||
} | ||
|
||
map $host $oidc_end_session_query_params { | ||
# Each IdP may use different query params of the $oidc_end_session_endpoint. | ||
# For example, Amazon Cognito requires 'logout_uri', and Auth0 requires | ||
# 'returnTo' instead of 'post_logout_redirect_uri' in the query params. | ||
default "post_logout_redirect_uri=$redirect_base/_logout&id_token_hint=$session_jwt"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this approach can still confuse the inexperienced user:
Perhaps it makes sense to hide There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Background:
Summary:
|
||
#www.example.com "client_id=$oidc_client&logout_uri=$redirect_base/_logout"; | ||
} | ||
|
||
map $host $oidc_client { | ||
default "my-client-id"; | ||
} | ||
|
@@ -44,10 +56,10 @@ map $host $oidc_scopes { | |
default "openid+profile+email+offline_access"; | ||
} | ||
|
||
map $host $oidc_logout_redirect { | ||
# Where to send browser after requesting /logout location. This can be | ||
# replaced with a custom logout page, or complete URL. | ||
default "/_logout"; # Built-in, simple logout page | ||
map $host $oidc_logout_landing_page { | ||
# Where to redirect browser after successful logout from the IdP. | ||
default "$redirect_base/logout_page"; # Built-in, simple logout page | ||
#www.example.com $redirect_base; | ||
} | ||
|
||
map $host $oidc_hmac_key { | ||
|
Uh oh!
There was an error while loading. Please reload this page.