keycloak-scim/server_development/topics/user-storage/packaging.adoc

15 lines
976 B
Text
Raw Normal View History

2016-12-03 00:55:47 +00:00
=== Packaging and Deployment
2017-04-03 19:18:56 +00:00
User Storage providers are packaged in a JAR and deployed or undeployed to the {{book.project.name}} runtime in the same way you would deploy something in the JBoss/Wildfly application server. You can either copy the JAR directly to the `deploy/` directory of the server, or use the JBoss CLI to execute the deployment.
2017-03-28 16:00:13 +00:00
2017-04-03 19:18:56 +00:00
In order for {{book.project.name}} to recognize the provider, you need to add a file to the JAR: `META-INF/services/org.keycloak.storage.UserStorageProviderFactory`. This file must contain a line-separated list of fully qualified classnames of the `UserStorageProviderFactory` implementations:
2016-12-03 00:55:47 +00:00
----
org.keycloak.examples.federation.properties.ClasspathPropertiesStorageFactory
org.keycloak.examples.federation.properties.FilePropertiesStorageFactory
----
2017-04-03 19:18:56 +00:00
{{book.project.name}} supports hot deployment of these provider JARs. You'll also see later in this chapter that you can package it within and as Java EE components.
2016-12-03 00:55:47 +00:00