-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
quarkus-oidc adapter has to support KeycloakConfigResolver alternative available in VertxOAuth2 #4448
Comments
A comment from a user:
|
See this Vertx issue. |
Hi Pedro @pedroigor I'll be happy to work with you on this one in the next week or so. If you'll have time then I'll be helping alongside, otherwise I can probably fix it. The question I have is, now that we have a |
@pedroigor I reckon now it does not really matter, whether it is realm specific or not, we'll likely need to use the configuration profiles anyway. |
@sberyozkin We should also be able to allow configuration to be chosen based on incoming requests (dynamically). For instance, depending on a path you may want to use Tenant A, etc .. |
The discussion at the now closed #5899 is relevant. CC @yuhaibohotmail |
@pedroigor sure, the question is how to group/scope the configurations which will be selected dynamically. @emmanuelbernard suggested earlier we should follow the way it is done for supporting multiple DB providers, I suppose we should have some convention:
and then the handler would decide on the qualifier and load it. Or may be to simplify things we can start from expecting the users constructing the adapter configuration in the handler directly... |
@sberyozkin I think both solutions should be considered. So users can either have a static definition of their tenants or a more dynamic version they can define/choose during runtime. FYI, in Keycloak we pretty much do #2, where the adapter configuration is built at runtime based on whatever logic you have for choosing a tenant. Maybe, for #2, it should be just a matter of allowing applications to produce a |
@sberyozkin I started something at this regard and from a user perspective, you would implement the following interface in order to resolve tenants:
While it works for resolving tenants based on the static configuration in What do you think? |
@pedroigor Hi Pedro, sorry I've missed this comment. As noted in your PR, the way you've done the resolution from the application properties based on the tenant id idea loos very good IMHO. Re the configuration as an object, can MultiTenantHandler help ? Or do you have something different in mind ? We can discuss it here or in the PR, as you prefer |
[fixes #4448] - OIDC Multi-tenancy Support
@pedroigor FYI
The text was updated successfully, but these errors were encountered: