Sign inSign up

smartblug/simple-keycloak

By smartblug

Updated about 6 years ago

Simple Keycloak Application to connect with your keycloak server and retrieve your token

Image
0

258

smartblug/simple-keycloak repository overview

simple-keycloak

Latests Version Latests Build Known Vulnerabilities Docker Automated buil Latest Release

Donate

Simple Keycloak Application to connect with your keycloak server and retrieve your token

Quickstart

Docker with keycloak

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

Manual, from source

Download and extract latest release package from https://github.com/smartblug/simple-keycloak

# Install dependencies
$ npm install
$ npm start
Configuration

There are some configs in config.js like port and data-dir.
You can:

  • Edit the config.js (not recommend)
  • Add a 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
    }
  }
};
  • Define environment Variables like SIMPLE-KEYCLOAK_KEYCLOAK

Tag summary

Content type

Image

Digest

Size

52.8 MB

Last updated

about 6 years ago

docker pull smartblug/simple-keycloak