Browse Source

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
pull/5058/head
olicooper 6 years ago
committed by GitHub
parent
commit
04734ec960
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      npm/ng-packs/packages/core/src/lib/strategies/auth-flow.strategy.ts

2
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<any> {

Loading…
Cancel
Save