adodge-bcg / keycloak-bulk

A bulk operation tool for the Keycloak identity manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

# Docker
docker run --rm -p 5000:5000 \
  -e OIDC_ISSUER=https://keycloak.example.com/auth/realms/YOUR_REALM \
  -e OIDC_CLIENT_ID=keycloak-bulk \
  -e OIDC_CLIENT_SECRET=your-secret \
  int128/keycloak-bulk

# Kubernetes
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:

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

Start the API server:

cd api
npm start

Start the frontend:

cd frontend
npm start

Open http://localhost:3000.

About

A bulk operation tool for the Keycloak identity manager

License:Apache License 2.0


Languages

Language:JavaScript 88.4%Language:CSS 7.4%Language:HTML 3.5%Language:Dockerfile 0.6%