Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.96 KB

File metadata and controls

65 lines (43 loc) · 1.96 KB

Local Keycloak Setup

This guide describes how to setup a keycloak instance in local docker container and import existing realm.json file.

Launch keycloak docker container

docker run --name keycloak -p 8088:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin -d jboss/keycloak

Import realm

Import the realm.json located in current directory

Create users

After importing the realm, the users need to be created manually.

Example users:

  • User 1: company 1 user
    Password: changeme
    Role: OEM, Dismantler

  • User 2: company 2 user
    Password: changeme
    Role: Recycler

Integration with vuejs app

Enable keycloak configuration

Install the keycloak plugin for vuejs app from npm install keycloak-js

The keycloak configurations are defined in src/services/service.const.js and src/services/Authentication.js files for different deployment environments.

Build and run the app

npm install --legacy-peer-deps
npm run serve