项目作者: int128

项目描述 :
A bulk operation tool for the Keycloak identity manager
高级语言: JavaScript
项目地址: git://github.com/int128/keycloak-bulk.git
创建时间: 2018-01-31T07:51:49Z
项目社区:https://github.com/int128/keycloak-bulk

开源协议:Apache License 2.0

下载


Keycloak Bulk CircleCI

A bulk operation tool for the Keycloak identity manager.

Getting Started

1. Create OIDC client

Create a new Client on your Keycloak.

  • Client ID: keycloak-bulk
  • Client Protocol: openid-connect
  • Access Type: confidential
  • Valid Redirect URIs: https://keycloak-bulk.example.com/signin/callback

2. Run server

Set the following environment variables:

Name Value Example
OIDC_ISSUER Issuer URL (mandatory) https://keycloak.example.com/auth/realms/YOUR_REALM
OIDC_CLIENT_ID Cliend ID (mandatory) keycloak-bulk
OIDC_CLIENT_SECRET Client secret (mandatory) 80a00dd6-7419-44a1-864d-ac8e44ebf68e
JWT_SECRET Signing key for a session token, defaults to random bytes affd7360-3591-4cb7-9baa-a386a77ced58

Run a container.

  1. # Docker
  2. docker run --rm -p 5000:5000 \
  3. -e OIDC_ISSUER=https://keycloak.example.com/auth/realms/YOUR_REALM \
  4. -e OIDC_CLIENT_ID=keycloak-bulk \
  5. -e OIDC_CLIENT_SECRET=your-secret \
  6. int128/keycloak-bulk
  7. # Kubernetes
  8. kubectl apply -f kubernetes.yaml

Open http://localhost:5000.

Contribution

This is an open source software licensed under Apache License 2.0.

Development

Create a new Client on your Keycloak.

Create dotenv:

  1. # /apiserver/.env
  2. OIDC_ISSUER=https://keycloak.example.com/auth/realms/YOUR_REALM
  3. OIDC_CLIENT_ID=keycloak-bulk
  4. OIDC_CLIENT_SECRET=your-secret

Start the API server:

  1. cd api
  2. npm start

Start the frontend:

  1. cd frontend
  2. npm start

Open http://localhost:3000.