mindgaze-auth
v1.0.6
Published
Auth library for Angular2 projects
Downloads
1
Readme
@Mindgaze Auth
This library helps Angular2 apps integrate with the SSO Mindgaze provides.
` import { AuthModule, AuthModuleParameters } from '@mindgaze/auth';
export const authModuleConfig = { authEndpoint: '', clientId: '', clientSecret: '', scope: '', userEndpoint: '' }
...
@NgModule({
imports: [
AuthModule.forRootFactory(authModuleConfig),
],
// Directives
declarations: [ AppComponent ],
// Providers
providers: [
],
bootstrap: [ AppComponent ]
}) export class AppModule {
} `