keycloak/docs/documentation/server_development/topics/user-storage/javaee.adoc

24 lines
1.2 KiB
Text
Raw Permalink Normal View History

2016-12-02 19:55:47 -05:00
=== Leveraging Jakarta EE
2016-12-02 19:55:47 -05:00
Since version 20, Keycloak relies only on Quarkus. Unlike WildFly, Quarkus is not an Application Server.
ifeval::[{project_community}==true]
For more detail, see https://www.keycloak.org/migration/migrating-to-quarkus#_quarkus_is_not_an_application_server.
endif::[]
2016-12-02 19:55:47 -05:00
Therefore, the User Storage Providers cannot be packaged within any Jakarta EE component or make it an EJB as was the case when Keycloak ran over WildFly in previous versions.
2016-12-02 19:55:47 -05:00
Providers implementations are required to be plain java objects which implement the suitable User Storage SPI interfaces, as was explained in the previous sections. They must be packaged and deployed as stated in the Migration Guide.
ifeval::[{project_community}==true]
See https://www.keycloak.org/migration/migrating-to-quarkus#_migrating_custom_providers[Migrating custom providers].
endif::[]
ifeval::[{project_product}==true]
See {migration_link}migrating-providers[Migrating custom providers].
endif::[]
2016-12-02 19:55:47 -05:00
You can still implement your custom `UserStorageProvider` class, which is able to integrate an external database by JPA Entity Manager, as shown in this example:
2016-12-02 19:55:47 -05:00
- {quickstartRepo_link}/tree/main/extension/user-storage-jpa
2016-12-07 16:58:25 -05:00
CDI is not supported.