|
|
@ -17,6 +17,9 @@ export class OAuthConfigurationHandler { |
|
|
@Inject(CORE_OPTIONS) private options: ABP.Root, |
|
|
@Inject(CORE_OPTIONS) private options: ABP.Root, |
|
|
) { |
|
|
) { |
|
|
this.oAuthService.configure(this.options.environment.oAuthConfig); |
|
|
this.oAuthService.configure(this.options.environment.oAuthConfig); |
|
|
|
|
|
if (this.oAuthService.responseType === 'code') { |
|
|
|
|
|
this.oAuthService.setupAutomaticSilentRefresh(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.listenToSetEnvironment(); |
|
|
this.listenToSetEnvironment(); |
|
|
} |
|
|
} |
|
|
|