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

Add redirect_uri option to oidc_providers entries #18197

Merged
merged 5 commits into from
Mar 3, 2025

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Feb 28, 2025

Allows overriding the redirect_uri parameter sent to both the authorization and token endpoints of the IdP. Typically this parameter is hardcoded to <public_baseurl>/_synapse/client/oidc/callback.

Yet it can be useful in certain contexts to allow a different callback URL. For instance, if you would like to intercept the authorization code returned from the IdP and do something with it, before eventually calling Synapse's OIDC callback URL yourself.

This change enables enterprise use cases but does not change the default behaviour.


Best reviewed commit-by-commit.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Allows overriding the `redirect_uri` parameter sent to both the
authorization and token endpoints of the IdP. Typically this parameter
is hardcoded to `<public_baseurl>/_synapse/client/oidc/callback`. But it
can be useful in certain contexts to allow a different callback URL. For
instance, if you would like to intercept the authorization code returned
from the IdP and do something with it, before eventually calling
Synapse's OIDC callback URL yourself.

This change enables enterprise use cases but does not change the default
behaviour.
@github-actions github-actions bot deployed to PR Documentation Preview February 28, 2025 17:38 Active
@anoadragon453 anoadragon453 marked this pull request as ready for review February 28, 2025 17:51
@anoadragon453 anoadragon453 requested a review from a team as a code owner February 28, 2025 17:51
@github-actions github-actions bot deployed to PR Documentation Preview February 28, 2025 17:52 Active
@anoadragon453 anoadragon453 force-pushed the anoa/oidc_redirect_uri_override branch from 8dd3b8b to 22bad5a Compare February 28, 2025 17:53
@github-actions github-actions bot deployed to PR Documentation Preview February 28, 2025 17:54 Active
@anoadragon453 anoadragon453 enabled auto-merge (squash) March 3, 2025 09:15
@github-actions github-actions bot deployed to PR Documentation Preview March 3, 2025 09:16 Active
@anoadragon453 anoadragon453 merged commit 154e23f into develop Mar 3, 2025
41 checks passed
@anoadragon453 anoadragon453 deleted the anoa/oidc_redirect_uri_override branch March 3, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants