Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

fix(oauth): fix wrong redirectUri in oidc after change appUrl#296

Merged
stonith404 merged 1 commit into
stonith404:mainfrom
qingfua:fix-oidc-wrong-redirect-uri
Oct 22, 2023
Merged

fix(oauth): fix wrong redirectUri in oidc after change appUrl#296
stonith404 merged 1 commit into
stonith404:mainfrom
qingfua:fix-oidc-wrong-redirect-uri

Conversation

@qingfua
Copy link
Copy Markdown
Contributor

@qingfua qingfua commented Oct 22, 2023

Sorry, but I find this bug after I deploy it to my server.

After changing appUrl in control panel, the OIDC provider will still use the former appUrl, since the redirectUri cached in constructor will never be changed.

this.redirectUri = `${this.config.get(
"general.appUrl",
)}/api/oauth/callback/${this.name}`;

@stonith404
Copy link
Copy Markdown
Owner

Oh, okay make sense. Thank you!

@stonith404 stonith404 merged commit 119b1ec into stonith404:main Oct 22, 2023
@qingfua qingfua deleted the fix-oidc-wrong-redirect-uri branch October 23, 2023 10:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants