koa-keycloak-example
v0.1.0
Published
Example page that demonstrates available keycloak functionality
Downloads
5
Readme
Basic Koa Example
Start and configure Keycloak
Start Keycloak:
Docker
Using the image from https://hub.docker.com/r/jboss/keycloak/
docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin jboss/keycloak
Standard
/<Path-To-Keycloak>/bin/standalone.sh
Open the Keycloak admin console, click on Add Realm, click on import 'Select file', select nodejs-example-realm.json and click Create.
Link the HEAD code of keycloak-connect by running:
npm link ../
Install the dependencies and start NodeJS example by running:
npm install
npm start
Open the browser at http://localhost:8081/ and login with username: 'user', and password: 'password'.