Skip to content

Handling Dynamic Redirect URLs for Multi-Tenant SaaS with OAuth in Quarkus #47194

Answered by sberyozkin
uhexos asked this question in Q&A
Discussion options

You must be logged in to vote

@uhexos Hi, you can use quarkus.oidc.authentication.restore-path-after-redirect and the user will be redirected to the original path.

Or, in your callback resource, you can inject OidcSession, get the tenant id, and redirect the user further.

You don't need to try to get the state cookie content.

Also, the callback handler should have @Authenticated, by the time it is called , the authorization code flow already completed

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@uhexos
Comment options

@uhexos
Comment options

@sberyozkin
Comment options

@uhexos
Comment options

@sberyozkin
Comment options

Answer selected by uhexos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants