keycloak-scim/examples/providers/rest
Stian Thorgersen c615674cbb Bump version
2016-10-21 07:03:15 +02:00
..
src/main KEYCLOAK-2262 Refactor realm resource provider, remove admin resource provider and added example 2016-04-06 10:24:30 +02:00
pom.xml Bump version 2016-10-21 07:03:15 +02:00
README.md KEYCLOAK-3538 Update examples to refer to standalone.xml for config 2016-09-08 14:04:12 +02: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,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/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.