s3pweb / keycloak-admin-client-cjs

Keycloak Admin Client compiled in CommonJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keycloak Admin Client in CommonJS

This lib exports the @keycloak/keycloak-admin-client (an ECMA Script module) as a CommonJS module, so it can be used in NestJS.

This repo is based on an idea by Manuelbaun on this issue keycloak/keycloak-nodejs-admin-client#523

The version number of this repo will follow the version number of @keycloak/keycloak-admin-client.

Install

npm i @s3pweb/keycloak-admin-client-cjs

Usage

import { KeycloakAdminClient } from '@s3pweb/keycloak-admin-client-cjs';

@Injectable()
export class KeycloakService {
    private readonly kcAdminClient: KeycloakAdminClient;

    constructor(logger: LoggingService) {
        this.log = logger.getLogger(KeycloackService.name);
        this.kcAdminClient = new KeycloakAdminClient();
    }

}

About

Keycloak Admin Client compiled in CommonJS.

License:MIT License


Languages

Language:Shell 59.0%Language:JavaScript 41.0%