From 04734ec96056f15c6fd85dd0c98259bbe98084a1 Mon Sep 17 00:00:00 2001 From: olicooper Date: Fri, 14 Aug 2020 12:37:07 +0100 Subject: [PATCH] Fixed OAuth configuration bug when using remoteEnv Relates to https://github.com/abpframework/abp/pull/4967 When using `remoteEnv`, OAuth was being configured with the default `environment.ts` settings rather than the one loaded from the `remoteEnv`. This should fix the problem. bug originally mentioned here: https://github.com/abpframework/abp/pull/4967#issuecomment-673464718 --- .../packages/core/src/lib/strategies/auth-flow.strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/ng-packs/packages/core/src/lib/strategies/auth-flow.strategy.ts b/npm/ng-packs/packages/core/src/lib/strategies/auth-flow.strategy.ts index b7aa5601e2..6b8fe91253 100644 --- a/npm/ng-packs/packages/core/src/lib/strategies/auth-flow.strategy.ts +++ b/npm/ng-packs/packages/core/src/lib/strategies/auth-flow.strategy.ts @@ -25,7 +25,7 @@ export abstract class AuthFlowStrategy { constructor(protected injector: Injector) { this.oAuthService = injector.get(OAuthService); - this.oAuthConfig = injector.get(CORE_OPTIONS).environment.oAuthConfig; + this.oAuthConfig = injector.get(Store).selectSnapshot(ConfigState.getDeep('environment.oAuthConfig')); } async init(): Promise {