Closed Paul6552 closed 1 month ago
/cc @Ladicek (arc), @manovotn (arc), @mkouba (arc), @pedroigor (keycloak), @sberyozkin (keycloak)
@Paul6552 quarkus.keycloak.admin-client.enabled
is here: https://github.com/quarkusio/quarkus/blob/main/extensions/keycloak-admin-client-common/deployment/src/main/java/io/quarkus/keycloak/admin/client/common/KeycloakAdminClientBuildTimeConfig.java.
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-keycloak-admin-client-reactive</artifactId>
</dependency>
depends on
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-keycloak-admin-client-common</artifactId>
</dependency>
which is where this property is coming from.
Can you create a reproducer please ?
@sberyozkin Does your answer mean that I have to import the dependency:
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-keycloak-admin-client-common</artifactId>
</dependency>
as well?
Because in the documentation there is no information about admin-client-common
.
Please find the java file KeycloakService.java. There is the Keycloak injection with the unsatisfied dependency.
I am really sorry! I uploaded the wrong branch X)
This is the correct branch / project: Correct project
@Paul6552 quarkus-keycloak-admin-client-common
is in the dependency tree of keycloak-admin-client
so it should be loaded without you having to manually include it.
@sberyozkin Have you had time to take a closer look at the problem? Thanks
I wanted to have a look at this old issue but the reproducer expired (which is definitely our fault, sorry about that).
I can see the properties mentioned above in the configuration properties we support so I don't know exactly what's going on. Given we didn't have other reports, it's probably specific to what you were doing and it's going to be hard to figure it out without a reproducer.
I'm going to close this issue. If you encounter it, open a new issue and attach a reproducer either as a GitHub repo or you can attach a zip file to the issue itself in GitHub.
Sorry I've missed this one, but indeed, it would be good to have an uptodate reproducer should the problem persist
Describe the bug
I try to inject keycloak but then I get the error message:
Unsatisfied dependency: no bean matches the injection point
I read the documentation from here: Documentation and checked my code so I have recognized some differences in documentation.
I thought setting the property
quarkus.keycloak.admin-client.enabled
totrue
would resolve my "unsatisfied dependency error" but when I tried to set the property in theapplication.properties
file I get the message that the property "enabled
" cannot be found:Is the property
enabled
still needed? And would this property anyhow resolve my problem with "unsatisfied dependency"?My pom file if needed:
Expected behavior
keycloak bean can be injected
Actual behavior
keycloak bean cannot be injected
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)maven 3.9.2
Additional information
quarkus 3.1.0.Final