|
|
@ -3,7 +3,7 @@ import { HTTP_INTERCEPTORS, HttpClientModule, HttpClientXsrfModule } from '@angu |
|
|
import { APP_INITIALIZER, Injector, ModuleWithProviders, NgModule } from '@angular/core'; |
|
|
import { APP_INITIALIZER, Injector, ModuleWithProviders, NgModule } from '@angular/core'; |
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
|
|
import { RouterModule } from '@angular/router'; |
|
|
import { RouterModule } from '@angular/router'; |
|
|
import { OAuthModule, OAuthStorage } from 'angular-oauth2-oidc'; |
|
|
import { OAuthModule, OAuthService, OAuthStorage } from 'angular-oauth2-oidc'; |
|
|
import { AbstractNgModelComponent } from './abstracts/ng-model.component'; |
|
|
import { AbstractNgModelComponent } from './abstracts/ng-model.component'; |
|
|
import { DynamicLayoutComponent } from './components/dynamic-layout.component'; |
|
|
import { DynamicLayoutComponent } from './components/dynamic-layout.component'; |
|
|
import { ReplaceableRouteContainerComponent } from './components/replaceable-route-container.component'; |
|
|
import { ReplaceableRouteContainerComponent } from './components/replaceable-route-container.component'; |
|
|
@ -37,6 +37,7 @@ import { getInitialData, localeInitializer } from './utils/initial-utils'; |
|
|
import { ShortDateTimePipe } from './pipes/short-date-time.pipe'; |
|
|
import { ShortDateTimePipe } from './pipes/short-date-time.pipe'; |
|
|
import { ShortTimePipe } from './pipes/short-time.pipe'; |
|
|
import { ShortTimePipe } from './pipes/short-time.pipe'; |
|
|
import { ShortDatePipe } from './pipes/short-date.pipe'; |
|
|
import { ShortDatePipe } from './pipes/short-date.pipe'; |
|
|
|
|
|
import { TimeoutLimitedOAuthService } from './services/timeout-limited-oauth.service'; |
|
|
|
|
|
|
|
|
export function storageFactory(): OAuthStorage { |
|
|
export function storageFactory(): OAuthStorage { |
|
|
return oAuthStorage; |
|
|
return oAuthStorage; |
|
|
@ -184,6 +185,7 @@ export class CoreModule { |
|
|
useFactory: noop, |
|
|
useFactory: noop, |
|
|
}, |
|
|
}, |
|
|
{ provide: OAuthStorage, useFactory: storageFactory }, |
|
|
{ provide: OAuthStorage, useFactory: storageFactory }, |
|
|
|
|
|
{ provide: OAuthService, useClass: TimeoutLimitedOAuthService }, |
|
|
{ provide: TENANT_KEY, useValue: options.tenantKey || '__tenant' }, |
|
|
{ provide: TENANT_KEY, useValue: options.tenantKey || '__tenant' }, |
|
|
{ |
|
|
{ |
|
|
provide: LOCALIZATIONS, |
|
|
provide: LOCALIZATIONS, |
|
|
|