-
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
Introduce a config builder for OIDC Client Registration #44429
Introduce a config builder for OIDC Client Registration #44429
Conversation
🙈 The PR is closed and the preview is expired. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi @michalvavrik Looks good, thanks, how will a more complex sequence look like, where some metadata are supplied as well ? |
It's flat structure because metadata has so little properties that I thought it was overkill to create extra You could find some examples in tests that I added, but basically this is how it works:
|
@michalvavrik See, there will be a lot of such sub-interfaces for I'd also like to suggest to offer shortcuts to let users minimize a number of |
Alright, I'll look into it. |
b488c31
to
09aa6c3
Compare
Hello @sberyozkin , I believe I have addressed your feedback. |
This comment has been minimized.
This comment has been minimized.
...e/src/main/java/io/quarkus/oidc/client/registration/OidcClientRegistrationConfigBuilder.java
Show resolved
Hide resolved
09aa6c3
to
fea29ab
Compare
Status for workflow
|
Status for workflow
|
This is but part of phase 2 agreed here #39185 (comment).
We agreed to start with the OIDC Client Registration because its API is experimental, therefore we can make changes on it and it's better to make breaking changes sooner than later.
This PR:
OidcClientRegistrationConfig
config group that users will use when they register new OIDC Clientio.quarkus.oidc.client.registration.OidcClientRegistrations
from former config group class to config group interfaceOidcCommonConfig
now implements@ConfigMapping
config group interface, which means we can use the interface without converting it to the class when not necessary (and we are not breaking anything); this needs to be done so that OIDC Common utils can accept both former class and new configWhen this PR is merged, it will be easier to follow with similar changes for the OIDC and OIDC Client extensions because they share
OidcCommonConfig
.