-
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
OIDC "Permission must not be empty" with imported test realm since 3.5.0 #36911
Comments
/cc @pedroigor (oidc), @sberyozkin (oidc) |
Might be related to my previous fix related to treating scopes like |
In this very case the scope value is quarkus/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcUtils.java Line 287 in 778123a
|
yes, I could reproduce it thanks to your quality reproduce, I'll provide fix today, thanks for reporting it! |
please let's treat it as a separate issue (maybe you can open enhancement issue), because this fix needs to be backported and discussion over this would only slow process down |
Absolutly, I did not intend to include this in the solution of this issue. |
Sweet, thanks 🥳 |
Describe the bug
In certain projects, we use a realm.json to initialize the keycloak dev instance for our tests.
This did work fine prior 3.5.0
Since 3.5.0 we do get an exception as soon as we try to send an authorized request to a REST api during a test:
As nothing is noted as a breaking change concerning oidc in 3.5.0 and the imported realm.json seems valid, I must assume that this is bug?
PS: Mabey our keycloak "test tool" to add users, roles etc. could be distilled and integrated in quarkus?
How to Reproduce?
Run tests:
https://github.com/HerrDerb/quarkus-issue/tree/oidc-3-5-0-issue
Switch to Quarkus version 3.4.3 and the test will succeed.
The text was updated successfully, but these errors were encountered: