@southsystem/authentication
v0.1.4
Published
```typescript // file: src/app/app.module.ts import { SSTSimpleStrategy, SSTKeycloakStrategy, SSTAuthenticationModule } from '@southsystem/authentication';
Downloads
11
Readme
Authentication Module
// file: src/app/app.module.ts
import { SSTSimpleStrategy, SSTKeycloakStrategy, SSTAuthenticationModule } from '@southsystem/authentication';
const keycloakConfig = {
enable: true,
realm: 'realm',
url: 'https://keycloak/auth',
clientId: 'client-id'
};
const simpleConfig = {
enable: true
}
// ...
imports: [
SSTAuthenticationModule.forRoot(SSTSimpleStrategy, simpleConfig),
// or
SSTAuthenticationModule.forRoot(SSTKeycloakStrategy, keycloakConfig),
],
// ...