0.1.0 • Published 4 years ago

nodejs-keycloak-example v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 years ago

Basic NodeJS 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:3000/ and login with username: 'user', and password: 'password'.