Skip to content

gugupy/adminjs-express-keycloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdminJS Express Keycloak - Example

This is an example of how to use AdminJS Express Keycloak.

Prerequisites

  • Node.js (latest)
  • npm (latest)
  • Keycloak client setup

How to Run

Clone the repository:

git clone https://github.com/gugupy/adminjs-express-keycloak.git

Install dependencies:

cd adminjs-express-keycloak
npm install

Update the Keycloak client configuration in src/config.ts with your Keycloak server URL, realm, client ID, and client secret. Alternatively, set the following environment variables in a .env file:

Variable Description
KEYCLOAK_URL Base URL of your Keycloak server (e.g. https://auth.example.com)
KEYCLOAK_REALM Keycloak realm name
KEYCLOAK_CLIENT_ID Client ID for the Keycloak client
KEYCLOAK_CLIENT_SECRET Client secret for the Keycloak client (if required)
ADMINJS_REDIRECT_URI Redirect URI used by AdminJS (callback URL)

Start the application:

npm run build && npm start

About

Example of Keycloak authentication provider with adminjs/express.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published