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

Multi-tenancy support #1744

Open
mancze opened this issue Jun 25, 2024 · 0 comments
Open

Multi-tenancy support #1744

mancze opened this issue Jun 25, 2024 · 0 comments

Comments

@mancze
Copy link
Contributor

mancze commented Jun 25, 2024

Feature description

We have an multi-tenant application. Every tenant of our application authenticates using oauth2 against a different OIDC RP. It would be nice if Micronaut security natively supported this case for oauth2 authentication. Every tenant should be able to resolve their own OpenIdClient/OauthClient, OpenIdProviderMetadata and all related tenat-specific configuration/beans.

Our custom implementation got a bit awkward after micronaut-security:4.8.0 introduced ReactiveJsonWebTokenSignatureValidator<SignedJWT> which is supposed to validate JWT token. The problem is that corresponding openid metadata (with matching JWKS uri to be used for a given tenant) is not being passed down to the validateSignature method. They have to be inferred from the context instead.

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

No branches or pull requests

1 participant