-
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
Issue using keycloak admin client #29958
Comments
/cc @pedroigor(keycloak), @sberyozkin(keycloak) |
Could you attach a zip with the version not working so that we can have a look? Thanks! |
Hello! Thanks for replying. |
This has already been fixed in #29772 |
Describe the bug
When using the Keycloak Admin Client by following the steps in https://quarkus.io/guides/security-keycloak-admin-client I get
ERROR [org.jbo.res.rea.com.cor.AbstractResteasyReactiveContext] (executor-thread-0) Request failed: javax.enterprise.context.ContextNotActiveException: RequestScoped context was not active when trying to obtain a bean instance for a client proxy of SYNTHETIC bean [class=org.keycloak.admin.client.Keycloak, id=1fb0e5144418a307281a16ae5d071d5d262b7891]
when using an
@Injected
client. Easy to workaround by creating the client manually as also shown in the guide.So my question is probably: Is the guide not working (due to written too long ago perhaps?) or is there a bug somewhere in the quarkus libraries?
Expected behavior
That the code in https://quarkus.io/guides/security-keycloak-admin-client works when instructions are followed.
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
OpenJDK Runtime Environment Corretto-17.0.2.8.1 (build 17.0.2+8-LTS)
GraalVM version (if different from Java)
n/a
Quarkus version or git rev
2.15.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Additional information
No response
The text was updated successfully, but these errors were encountered: