keycloak-scim/examples/providers/rest
Jon Koops 972ebb9650
Use a valid SemVer format for the SNAPSHOT version (#17334)
* Use a valid SemVer format for the SNAPSHOT version

* Update pom.xml

* Update pom.xml

---------

Co-authored-by: Stian Thorgersen <stianst@gmail.com>
Co-authored-by: Stian Thorgersen <stian@redhat.com>
2023-03-03 11:11:44 +01:00
..
src/main KEYCLOAK-5119 (#4400) 2017-08-22 08:07:36 +02:00
pom.xml Use a valid SemVer format for the SNAPSHOT version (#17334) 2023-03-03 11:11:44 +01:00
README.md KEYCLOAK-13003 Remove a mention about providers directory 2020-02-17 17:09:27 +01:00

Example Realm REST Resource provider

You can deploy as a module by running:

$KEYCLOAK_HOME/bin/jboss-cli.sh --command="module add --name=org.keycloak.examples.hello-rest-example --resources=target/hello-rest-example.jar --dependencies=org.keycloak.keycloak-core,org.keycloak.keycloak-server-spi,org.keycloak.keycloak-server-spi-private,javax.ws.rs.api"

Then registering the provider by editing standalone/configuration/standalone.xml and adding the module to the providers element:

<providers>
    ...
    <provider>module:org.keycloak.examples.hello-rest-example</provider>
</providers>

Then start (or restart) the server. Once started open http://localhost:8080/auth/realms/master/hello and you should see the message Hello master. You can also invoke the endpoint for other realms by replacing master with the realm name in the above url.