-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Regression issue: OIDC is failing to start even when authentication is disabled #16014
Comments
/cc @pedroigor, @sberyozkin |
Two things here:
|
The code branch where Uni is expected to be returned if the tenant is disabled is missing a |
OK, the reason the code flow dev mode test works is because it checks that |
And it is also getting an expected 401 when the protected resource is accessed - but there the client_id is present but wrong - while in this case it is missing.
|
Outstanding work @sberyozkin ! Also I see you have already covered this scenario in upstream. |
Hi @Sgitario You are very kind :-), I'd like to hide myself for that super |
Closing manually as I mistyped |
Describe the bug
Having a Quarkus application with resteasy and OIDC, and disabling the authentication for all endpoints using:
When we run the app, it fails with:
Note that I'm aware that we can disable OIDC using the property
quarkus.oidc.enabled
, but this property is managed at build time. Therefore, the only way to enable/disable OIDC authentication at runtime is via the properties described above.The same was working fine in 1.12.2.Final, but not in 1.13.0.Final.
To Reproduce
Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).
Or attach an archive containing the reproducer to the issue.
Steps to reproduce the behavior:
mvn io.quarkus:quarkus-maven-plugin:1.13.0.Final:create -DprojectGroupId=org.acme -DprojectArtifactId=getting-started -DplatformGroupId=io.quarkus -DplatformVersion=1.13.0.Final -DclassName="org.acme.quickstart.GreetingResource" -Dpath="/hello"
mvn quarkus:add-extension -Dextensions=oidc
application.properties
:mvn clean verify
The text was updated successfully, but these errors were encountered: