Browse Source

Merge pull request #10574 from abpframework/auto-merge/rel-4-4/617

Merge branch rel-5.0 with rel-4.4
pull/10575/head
Mehmet Erim 5 years ago
committed by GitHub
parent
commit
2559a36092
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      npm/ng-packs/packages/core/src/lib/components/dynamic-layout.component.ts
  2. 5
      npm/ng-packs/packages/core/src/lib/strategies/auth-flow.strategy.ts

2
npm/ng-packs/packages/core/src/lib/components/dynamic-layout.component.ts

@ -52,9 +52,7 @@ export class DynamicLayoutComponent {
this.router = injector.get(Router); this.router = injector.get(Router);
this.routes = injector.get(RoutesService); this.routes = injector.get(RoutesService);
this.getLayout();
this.checkLayoutOnNavigationEnd(); this.checkLayoutOnNavigationEnd();
this.listenToLanguageChange(); this.listenToLanguageChange();
} }

5
npm/ng-packs/packages/core/src/lib/strategies/auth-flow.strategy.ts

@ -62,6 +62,11 @@ export abstract class AuthFlowStrategy {
if (shouldClear) clearOAuthStorage(oAuthStorage); if (shouldClear) clearOAuthStorage(oAuthStorage);
this.oAuthService.configure(this.oAuthConfig); this.oAuthService.configure(this.oAuthConfig);
this.oAuthService.events
.pipe(filter(event => event.type === 'token_refresh_error'))
.subscribe(() => this.navigateToLogin());
return this.oAuthService return this.oAuthService
.loadDiscoveryDocument() .loadDiscoveryDocument()
.then(() => { .then(() => {

Loading…
Cancel
Save