| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- import { NgModule } from '@angular/core';
- import { CommonModule } from '@angular/common';
- import { LoginComponent } from './components/login.component';
- import {RouterModule} from '@angular/router';
- import {DialogModule} from 'primeng/dialog';
- import {ButtonModule} from 'primeng/button';
- import {ReactiveFormsModule} from '@angular/forms';
- import {AuthModule, LogLevel} from 'angular-auth-oidc-client';
- import {environment} from '../../environments/environment';
- @NgModule({
- declarations: [LoginComponent],
- imports: [
- CommonModule,
- RouterModule,
- RouterModule,
- DialogModule,
- ButtonModule,
- ReactiveFormsModule,
- AuthModule.forRoot({
- config: {
- authority: 'https://dev-0uqvxrrzblyiryr2.us.auth0.com',
- redirectUrl: window.location.origin,
- postLogoutRedirectUri: window.location.origin,
- clientId: 'idcSfV47mK3MSz9FGUTUGZ3AfGiS3Qf1',
- scope: 'openid profile email offline_access senslog:all',
- responseType: 'code',
- silentRenew: false,
- useRefreshToken: false,
- logLevel: LogLevel.Debug,
- customParamsAuthRequest: {
- audience: environment.sensLogBaseUrl,
- },
- },
- }),
- ]
- })
- export class LoginModule { }
|