keycloak-scim/examples/providers/rest
mposolda 6fc99cd749 KEYCLOAK-7594 Upgrade to Wildfly 13. Cross-DC: Upgrade to infinispan server 9.2.4 and JDG 7.2
Co-authored-by: Douglas Palmer <dpalmer@redhat.com>
Co-authored-by: stianst <stianst@gmail.com>
Co-authored-by: Hynek Mlnarik <hmlnarik@redhat.com>
2018-08-27 12:52:53 +02:00
..
src/main KEYCLOAK-5119 (#4400) 2017-08-22 08:07:36 +02:00
pom.xml KEYCLOAK-7594 Upgrade to Wildfly 13. Cross-DC: Upgrade to infinispan server 9.2.4 and JDG 7.2 2018-08-27 12:52:53 +02:00
README.md Update README.md 2016-11-11 12:30:42 +00:00

Example Realm REST Resource provider

To deploy copy target/hello-rest-example.jar to providers directory. Alternatively 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.