0.1.4 • Published 7 years ago
@southsystem/authentication
Licence
—
Version
0.1.4
Deps
1
Size
232 kB
Vulns
0
Weekly
0
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),
],
// ...