-
Notifications
You must be signed in to change notification settings - Fork 85
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
Configure authentication at Build time #795
Conversation
.../src/main/java/io/quarkiverse/openapi/generator/ReactiveOidcClientRequestFilterDelegate.java
Fixed
Show fixed
Hide fixed
.../io/quarkiverse/openapi/generator/providers/BuildTimeAbstractAuthenticationProviderTest.java
Fixed
Show fixed
Hide fixed
.../io/quarkiverse/openapi/generator/providers/BuildTimeAbstractAuthenticationProviderTest.java
Fixed
Show fixed
Hide fixed
67ccec9
to
74a5b9b
Compare
345641f
to
56acf4b
Compare
there is an issue with the fact that I made the OIDC Filter extension optional. I provided a temporary fix by removing the dependency to AbstractOidcClientRequestReactiveFilter and AbstractOidcClientRequestFilter (see 334c66f), before the fix,
with rest easy reactive the build hung with the following error:
|
a8a9251
to
334c66f
Compare
...deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/GeneratorProcessor.java
Fixed
Show fixed
Hide fixed
...e/src/main/java/io/quarkiverse/openapi/generator/ClassicOidcClientRequestFilterDelegate.java
Fixed
Show fixed
Hide fixed
.../src/main/java/io/quarkiverse/openapi/generator/ReactiveOidcClientRequestFilterDelegate.java
Fixed
Show fixed
Hide fixed
.../src/main/java/io/quarkiverse/openapi/generator/ReactiveOidcClientRequestFilterDelegate.java
Fixed
Show fixed
Hide fixed
5bf62fb
to
44e9b5c
Compare
...deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/GeneratorProcessor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rmanibus, amazing Job! I just added a simple comment
44e9b5c
to
e750fda
Compare
@mcruzdev I fixed the imports ! |
e750fda
to
5e48fd9
Compare
I learned a lot, thank you for this pull request! |
@mcruzdev you are very welcome ! Any chance to get this approved again ? The force push dropped the review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this contribution @rmanibus. Nicely done!
I just left some aesthetical nits.
...e/src/main/java/io/quarkiverse/openapi/generator/providers/ApiKeyAuthenticationProvider.java
Outdated
Show resolved
Hide resolved
...java/io/quarkiverse/openapi/generator/deployment/authentication/OpenApiSpecProviderTest.java
Outdated
Show resolved
Hide resolved
...java/io/quarkiverse/openapi/generator/deployment/authentication/OpenApiSpecProviderTest.java
Outdated
Show resolved
Hide resolved
...java/io/quarkiverse/openapi/generator/deployment/authentication/OpenApiSpecProviderTest.java
Outdated
Show resolved
Hide resolved
...java/io/quarkiverse/openapi/generator/deployment/authentication/OpenApiSpecProviderTest.java
Show resolved
Hide resolved
...e/src/main/java/io/quarkiverse/openapi/generator/ClassicOidcClientRequestFilterDelegate.java
Outdated
Show resolved
Hide resolved
client/runtime/src/main/java/io/quarkiverse/openapi/generator/OidcClient.java
Outdated
Show resolved
Hide resolved
client/runtime/src/main/java/io/quarkiverse/openapi/generator/OpenApiSpec.java
Outdated
Show resolved
Hide resolved
.../src/main/java/io/quarkiverse/openapi/generator/ReactiveOidcClientRequestFilterDelegate.java
Outdated
Show resolved
Hide resolved
.../src/main/java/io/quarkiverse/openapi/generator/ReactiveOidcClientRequestFilterDelegate.java
Outdated
Show resolved
Hide resolved
741b9c4
to
1dec5c4
Compare
1dec5c4
to
405bac8
Compare
@hbelmiro thanks a lot ! It is done ! |
.../src/main/java/io/quarkiverse/openapi/generator/ReactiveOidcClientRequestFilterDelegate.java
Dismissed
Show dismissed
Hide dismissed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @rmanibus.
public final void addAuthenticationProvider(final AuthProvider authProvider) { | ||
this.authProviders.add(authProvider); | ||
public CompositeAuthenticationProvider(List<AuthProvider> authProviders) { | ||
this.authProviders = List.copyOf(authProviders); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to copy this? As far as I can see authProviders is not modified, isnt it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted it to be immutable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a public getter on it
@wmedvede will also look since he made many changes to this code, too. |
Any updates about this ? |
Fix #797
Many thanks for submitting your Pull Request ❤️!
Please make sure that your PR meets the following requirements:
[0.9.x] Subject
How to backport a pull request to a different branch?
In order to automatically create a backporting pull request please add one or more labels having the following format
backport-<branch-name>
, where<branch-name>
is the name of the branch where the pull request must be backported to (e.g.,backport-quarkus2
to backport the original PR to thequarkus2
branch).Once the original pull request is successfully merged, the automated action will create one backporting pull request per each label (with the previous format) that has been added.
If something goes wrong, the author will be notified and at this point a manual backporting is needed.