Skip to content
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

fix: Ensure proper OIDC redirect_uri is used #192

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

meyfa
Copy link
Member

@meyfa meyfa commented Dec 24, 2024

openid-client manipulates the redirect URI we gave based on the request URL, which will be wrong when behind a reverse proxy. This is a workaround for that based on upstream discussions.

Additional Context

Alternatively, it may be possible to configure the trust proxy setting, but this is a burden on users and not really necessary when we already have the URL and could use it as-is.

Checklist

  • The pull request title meets the Conventional Commits specification and optionally includes the scope, for example: feat: Add social login

openid-client manipulates the redirect URI we gave
based on the request URL, which will be wrong when
behind a reverse proxy. This is a workaround for
that based on upstream discussions.

Alternatively, it may be possible to configure the
trust proxy setting, but this is a burden on users
and not really necessary when we already have the
URL and could use it as-is.
@meyfa meyfa requested a review from a team as a code owner December 24, 2024 22:45
@lusu007 lusu007 enabled auto-merge (squash) December 24, 2024 22:46
@lusu007 lusu007 merged commit 894b4db into main Dec 24, 2024
5 checks passed
@lusu007 lusu007 deleted the fix/openid-client-currenturl branch December 24, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants