@tdoe/tdoe-authentication-library
v0.1.2
Published
Authentication library for the TDOE to handle all of the OIDC config and nonsense for each of our apps.
Readme
TDOE Authentication Package
This module will simplify the oidc implementation for TDOE applications
Library Setup
Add packages
npm install @tdoe/tdoe-authentication-library angular-auth-oidc-client
Import Module
- environment: The name of the environment you are running in (vs, dev, uat, prod)
- oidcConfigPath: The path to the JSON file for your oidc config. You will also need one per environment
- debug: Will log debug information to the console
- clientId: Your oidc clientId
import { TdoeAuthenticationLibraryModule } from '@tdoe/tdoe-authentication-library';
TdoeAuthenticationLibraryModule.forRoot({
environment: environment.envName,
oidcConfigPath: assets/oidc/auth-client.${environment.envName}.json,
debug: (environment.envName === 'vs'),
clientId: environment.client_id
});
