mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-15 03:50:11 +01:00
fix(oauth): add post_logout_redirect_uri
to OAuth logout redirect URI (#638)
* Add `post_logout_redirect_uri` to OAuth logout redirect URI Signed-off-by: Marvin A. Ruder <signed@mruder.dev> * Update OAuth2 configuration documentation Signed-off-by: Marvin A. Ruder <signed@mruder.dev> --------- Signed-off-by: Marvin A. Ruder <signed@mruder.dev>
This commit is contained in:
parent
d5cd3002a1
commit
bfbe8de98a
@ -274,6 +274,7 @@ export class AuthService {
|
||||
URL.canParse(configuration.end_session_endpoint)
|
||||
) {
|
||||
const redirectURI = new URL(configuration.end_session_endpoint);
|
||||
redirectURI.searchParams.append("post_logout_redirect_uri", this.config.get("general.appUrl"));
|
||||
redirectURI.searchParams.append("id_token_hint", idTokenHint);
|
||||
redirectURI.searchParams.append(
|
||||
"client_id",
|
||||
|
@ -42,7 +42,9 @@ Redirect URL: `https://<your-domain>/api/oauth/callback/discord`
|
||||
|
||||
Generic OpenID Connect provider is also supported, we have tested it on Keycloak, Authentik and Casdoor.
|
||||
|
||||
Redirect URL: `https://<your-domain>/api/oauth/callback/oidc`
|
||||
Redirect URI: `https://<your-domain>/api/oauth/callback/oidc`
|
||||
|
||||
Post Logout Redirect URI: `https://<your-domain>`
|
||||
|
||||
## Custom your OAuth 2 Provider
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user