Simple Keycloak Application to connect with your keycloak server and retrieve your token
258
Simple Keycloak Application to connect with your keycloak server and retrieve your token
Just add your front and back parameter in SIMPLE-KEYCLOAK_KEYCLOAK env as this sample :
$ docker run -p 0.0.0.0:3000:3000 -e SIMPLE-KEYCLOAK_KEYCLOAK='{"front":{"realm":"simple-keycloak","auth-server-url":"http://localhost:8080/auth","ssl-required":"external","resource":"simple-keycloak_frontend","public-client":true,"confidential-port":0},"back":{"realm":"simple-keycloak","bearer-only":true,"auth-server-url":"http://localhost:8080/auth","ssl-required":"external","resource":"simple-keycloak_backend","confidential-port":0}}' smartblug/simple-keycloak
Connect to your server to check
Download and extract latest release package from https://github.com/smartblug/simple-keycloak
# Install dependencies
$ npm install
$ npm start
There are some configs in config.js like port and data-dir.
You can:
config.js (not recommend)config.production.js where production is the value from NODE_ENV'use strict';
module.exports = {
keycloak: {
front: {
"realm": "simple-keycloak",
"auth-server-url": "https://iam.mydomain.com/auth/",
"ssl-required": "external",
"resource": "simple-keycloak_frontend",
"public-client": true,
"confidential-port": 0
},
back: {
"realm": "simple-keycloak",
"bearer-only": true,
"auth-server-url": "https://iam.mydomain.com/auth/",
"ssl-required": "external",
"resource": "simple-keycloak_backend",
"confidential-port": 0
}
}
};
SIMPLE-KEYCLOAK_KEYCLOAKContent type
Image
Digest
Size
52.8 MB
Last updated
about 6 years ago
docker pull smartblug/simple-keycloak