This DHP shared library contains common code for authentication/authorization used by Nodejs based service backends. Supported Identity Provider include IBM App ID and Keycloak.
The following environment variables is used for auth functionality:
Environment Variable | Value |
---|---|
LOG_LEVEL | Standard log4js log levels. debug, info, error, etc. |
AUTH_STRATEGY | DEVELOPMENT or KEYCLOAK or APPID |
APP_ID_URL | The App ID URL found in IBM Cloud service credentials oauthServerUrl value |
APP_ID_TENANT_ID | The App ID URL found in IBM Cloud service credentials tenantId value |
APP_ID_CLIENT_ID | App ID instance clientID |
APP_ID_SECRET | App ID instance secret |
Environment Variable | Value |
---|---|
KEYCLOAK_AUTH_SERVER_URL | Keycloak Server URL |
KEYCLOAK_REALM_NAME | Keycloak Realm name for auth |
KEYCLOAK_REALM_CERT | Keycloak Realm Certificate |
KEYCLOAK_CLIENT_ID | Keycloak instance Client ID |
KEYCLOAK_CLIENT_SECRET | Keycloak instance client secret |
npm install
This section lists license details of libraries / dependencies.