-
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
Disabled default quarkus-oidc tenant blocks access to the public resources #10343
Comments
This is an example test about how to reproduce this issue: https://github.com/Sgitario/quarkus-oidc-issue |
This issue is fixed as part of #10506 I did check these changes and now it's possible to enable/disable the authentication at runtime: if the property "quarkus.oidc.tenant-enabled" is false, the tenant won't be checked if the URL is public. Might be an issue when the URL is protected, because it returns HTTP OK with empty response (and it should return 401) CC @sberyozkin |
Hi @Sgitario thanks for verifying it,
That is fine - as far as But I'm not sure why an empty response, can you clarify please ? What is a protected resource, a file ? If yes - how is it protected (given that Also, if you'd like your test added as well, please rebase your PR |
Hi @Sgitario I'm closing this issue given that you've confirmed it has been fixed, but lets keep your PR open for now to finalize the discussion there and also in case you'd like to rebase it |
@Sgitario Sorry I got confused a bit, can you please clarify about the empty response (see my comment above) |
Sorry, not to be too clear in my comment. With empty response, I mean that if I configure my endpoint with the next properties:
When I call to my endpoint, I get HTTP OK, but with no content (the service is not invoked, but I still gets 200 OK with literally empty body). And I guess the right behaviour should be to get HTTP 401. However, when I configure my endpoints with permit:
It returns HTTP OK with the expected content. And with security:
It returns the expected HTTP 401 if I call my service. If I need to get redirected to keycloak, I need to add the config:
And this is also working fine. Therefore, I think there is a new issue with this configuration:
But this issue is already fixed and working as expected. |
A request to a resource such as
http://localhost:8080/graphql
fails withDespite the following configuration:
The text was updated successfully, but these errors were encountered: