@dedel.alex/keycloak-admin-client-cjs
TypeScript icon, indicating that this package has built-in type declarations

26.0.2 • Public • Published

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 AdonisJS and NestJS.

This repo is based on an idea by Manuelbaun on this issue https://github.com/keycloak/keycloak-nodejs-admin-client/issues/523

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

Install

npm i @dedel.alex/keycloak-admin-client-cjs

Usage

import { KeycloakAdminClient } from '@dedel.alex/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();
    }

}

Package Sidebar

Install

npm i @dedel.alex/keycloak-admin-client-cjs

Weekly Downloads

1,712

Version

26.0.2

License

MIT

Unpacked Size

93.5 kB

Total Files

5

Last publish

Collaborators

  • dedel.alex