Skip to content

Commit cf3be5a

Browse files
author
pwilleme
committed
PR comments done
1 parent efcc5ec commit cf3be5a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

projects/angular-auth-oidc-client/src/lib/config/openid-configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export interface OpenIdConfiguration {
177177
allowUnsafeReuseRefreshToken?: boolean;
178178
/** Disable validation for id_token expiry time */
179179
disableIdTokenValidation?: boolean;
180-
/** Disabled PKCE support.
180+
/** Disables PKCE support.
181181
* Authorize request will be sent without code challenge.
182182
*/
183183
disablePkce?: boolean;

projects/angular-auth-oidc-client/src/lib/utils/url/url.service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,14 @@ export class UrlService {
486486
}
487487

488488
private getCodeChallenge(config: OpenIdConfiguration): Observable<string> {
489-
if (config.disablePkce) return of(null);
489+
490+
if (config.disablePkce) {
491+
return of(null);
492+
}
493+
490494
// code_challenge with "S256"
491495
const codeVerifier = this.flowsDataService.createCodeVerifier(config);
496+
492497
return this.jwtWindowCryptoService.generateCodeChallenge(codeVerifier);
493498
}
494499

0 commit comments

Comments
 (0)