-
Notifications
You must be signed in to change notification settings - Fork 91
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
CompositeAuthenticationProvider does not apply always authentication resulting to HTTP 401 responses #854
Comments
@siavelis, we recently changed the way we generate the authentication code. Was it working before version 2.5.0? |
@ricardozanini thank you for the follow up! I have tried with versions: 2.4.7 and 2.4.2 but there is the same issue |
I'll take a look once I have the time. If you can, please, send a PR to fix it. |
I am encountering a 401 Error when using Basic Auth and trying to set the password via the property: quarkus.openapi-generator.[filename].auth.[security_scheme_name].password Observations: Steps to Reproduce
Expected Behavior
Actual Behavior
Additional Information
Example configurationquarkus.openapi-generator.myclient.auth.basic.password= # (left empty in application.properties)
Let me know if you’d like any modifications or additions to this issue text! |
@dzwicker please open another issue. |
Hello!
There is an issue in the authentication logic, as it is not always applied.
How to reproduce:
Result:
Possible workaround/fixes:
CompositeAuthenticationProvider:canFilter
uses the url path from the Openapi specification to decide whether to apply authentication or not. Hence the suggestion would be to include a case when the rest client has a prefix in the base url pathquarkus.openapi-generator.codegen.default-security-scheme
will not rectify the issueVersions used:
The text was updated successfully, but these errors were encountered: