Skip to content
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

Allow using an additional persistence unit and datasource #10579

Closed
Tracked by #10708
pedroigor opened this issue Mar 3, 2022 Discussed in #10547 · 2 comments · Fixed by #10581
Closed
Tracked by #10708

Allow using an additional persistence unit and datasource #10579

pedroigor opened this issue Mar 3, 2022 Discussed in #10547 · 2 comments · Fixed by #10581
Assignees
Milestone

Comments

@pedroigor
Copy link
Contributor

Discussed in #10547

Originally posted by dasniko March 2, 2022
In the server development docs at https://www.keycloak.org/docs/latest/server_development/index.html#leveraging-jakarta-ee it is mentioned how Jakarta EE resources can be used in a User Storage Provider. There‘s also the quickstart-example https://github.com/keycloak/keycloak-quickstarts/tree/latest/user-storage-jpa

With the Quarkus-based distribution of Keycloak, usage of Jakarta EE APIs like session/stateless beans is no longer possible, like also mentioned here: https://www.keycloak.org/migration/migrating-to-quarkus (end of the document).

With Quarkus it is possible to configure multiple database connections.
Will this also be the case for Keycloak itself with Keycloak config params?
And how can/will these database connections be used in a User Storage Provider? Or will this no more be possible in current Keycloak versions? What about the documentation and quickstart-examples?

If this won‘t be possible anymore, it would mean to break many custom User Storage Provider implementations. Users/customers are already starting to complain in other forums:

Can you please give us an update to this?

@pedroigor
Copy link
Contributor Author

Some initial changes to make the quickstart work are here https://github.com/pedroigor/keycloak-quickstarts/tree/issue-10579.

I'm going to be looking now how to make the changes less painful for those migrating from Wildfly.

@beus
Copy link

beus commented Apr 19, 2022

Thanks for your answers. I will see this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

3 participants