Skip to content

Commit

Permalink
Fixed OAuth configuration bug when using remoteEnv
Browse files Browse the repository at this point in the history
Relates to abpframework/abp#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: abpframework/abp#4967 (comment)
  • Loading branch information
olicooper authored Aug 14, 2020
1 parent 1afba6d commit 7d1408e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/lib/strategies/auth-flow.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 7d1408e

Please sign in to comment.