15.0.2 • Published 3 years ago

@debovema/theia-keycloak-auth v15.0.2

Weekly downloads
-
License
EPL-2.0
Repository
github
Last release
3 years ago

Keycloak authentication for Theia

A package to add the authentication with Keycloak in Theia.

Installation

Add this package in your Theia application:

# with npm
npm install theia-keycloak-auth

# with Yarn
yarn add theia-keycloak-auth

Configuration

Configuration is set using environment variables.

This package use the Keycloak Node.js adapter under the hood and the following default values are loosely based on the Keycloak Getting Started guide.

Environment variableDescriptionMandatoryExample
KEYCLOAK_REALMThe Keycloak realmyesdemo
KEYCLOAK_REALM_PUBLIC_KEYThe PEM format of the Keycloak realm public keyno
KEYCLOAK_URLThe Keycloak URLyeshttp://localhost:8180/auth
KEYCLOAK_HOSTIn a reverse proxy context, override the host of the Keycloak URLno
KEYCLOAK_PORTIn a reverse proxy context, override the port of the Keycloak URLno
KEYCLOAK_SSL_REQUIREDEnsures that all communication to and from the Keycloak server is over HTTPS or notnoall, external, none (default: external)
KEYCLOAK_CONFIDENTIAL_PORTThe confidential port used by the Keycloak server for secure connections over SSL/TLSno8443 (default: 8443)
KEYCLOAK_CLIENT_IDThe client-id of the applicationyesvanilla