-
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
Dev Services for Keycloak: Client and users aren't created #46207
Comments
/cc @geoand (devservices), @pedroigor (keycloak), @sberyozkin (keycloak) |
Have added the following property to
Where
I'm not seeing any trace showing that the realm definition file is loaded. Running the
|
@nicolasduminil Adding client and users option is only there to support basic cases where no actual realms with the user definitions are available, so instead of default As far as loading custom realms is concerned, it works well to the best of my knowledge, we have a lot of tests using custom realms, if it does not then it would make sense to create another issue as it is not really related to this issue |
These basic cases don't work, as explained.
Actually it doesn't, as you can notice by reproducing the issue, as documented, using your own test (Quick Starts). |
Describe the bug
The documentation states:
However, using the mentioned properties, the associated users, password and client isn't created in the Keycloak dev instance.
Expected behavior
Expecting than running Keycloak in dev mode and connecting as admin, to find the mentioned usesr and client created in the given realm.
Actual behavior
Neither the user, nor the client is created.
How to Reproduce?
Step to reproduce:
security-keycloak-authorization-quickstart
in Quarkus Quick Starts.src/main/resources/application.properties
to add the following lines:mvn quarkus:dev
Keycloak Admin
link in theOpenID Connect
pane.admin/admin
.quarkus
realm.Clients
backend-service
as an ID doesn't exist.Users
Duke
andJohn
.Realm roles
.reader
andwriter
.Output of
uname -a
orver
Linux nicolas-XPS-15-9570 6.8.0-52-generic #53-Ubuntu SMP PREEMPT_DYNAMIC Sat Jan 11 00:06:25 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
java version "21.0.3" 2024-04-16 LTS Java(TM) SE Runtime Environment (build 21.0.3+7-LTS-152) Java HotSpot(TM) 64-Bit Server VM (build 21.0.3+7-LTS-152, mixed mode, sharing)
Quarkus version or git rev
3.17
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546) Maven home: /opt/apache-maven-3.9.5 Java version: 21.0.3, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-21-oracle-x64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "6.8.0-52-generic", arch: "amd64", family: "unix"
Additional information
N/A
The text was updated successfully, but these errors were encountered: