We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When multiple HTTP authentication mechanisms are present (not implemented yet) a IllegalStateException should be thrown but is not.
Expected behavior The IllegalStateException to be thrown.
Actual behavior (Describe the actual behavior clearly and concisely.)
To Reproduce Steps to reproduce the behavior:
quarkus.oidc.tenant-enabled=false
Configuration
# Add your application.properties here, if applicable. quarkus.oidc.tenant-enabled=false
Additional context In HttpAuthenticator.java lift if (instance.isAmbiguous()) out of if (instance.isResolvable()).
if (instance.isAmbiguous())
if (instance.isResolvable())
@Inject public HttpAuthenticator(Instance<HttpAuthenticationMechanism> instance, Instance<IdentityProvider<UsernamePasswordAuthenticationRequest>> usernamePassword) { if (instance.isResolvable()) { **if (instance.isAmbiguous()) {** // Not reachable due because isResolvable checks !isAmbiguous throw new IllegalStateException("Multiple HTTP authentication mechanisms are not implemented yet, discovered " + instance.stream().collect(Collectors.toList())); } mechanism = instance.get(); } else { if (!usernamePassword.isUnsatisfied()) { //TODO: config mechanism = new BasicAuthenticationMechanism("Quarkus"); } else { mechanism = new NoAuthenticationMechanism(); } } }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
When multiple HTTP authentication mechanisms are present (not implemented yet) a IllegalStateException should be thrown but is not.
Expected behavior
The IllegalStateException to be thrown.
Actual behavior
(Describe the actual behavior clearly and concisely.)
To Reproduce
Steps to reproduce the behavior:
quarkus.oidc.tenant-enabled=false
to avoid startup error.Configuration
Additional context
In HttpAuthenticator.java lift
if (instance.isAmbiguous())
out ofif (instance.isResolvable())
.The text was updated successfully, but these errors were encountered: