Skip to content

Commit 6119125

Browse files
Merge pull request #2159 from salahBouragba/remove-code-challenge-params
dont add code challenge if disablePkce is true
2 parents 4797f57 + 273e047 commit 6119125

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,10 @@ export class UrlService {
561561
params = params.append('nonce', nonce);
562562
params = params.append('state', state);
563563

564-
if (this.flowHelper.isCurrentFlowCodeFlow(configuration)) {
564+
if (
565+
this.flowHelper.isCurrentFlowCodeFlow(configuration) &&
566+
!configuration.disablePkce
567+
) {
565568
params = params.append('code_challenge', codeChallenge);
566569
params = params.append('code_challenge_method', 'S256');
567570
}

0 commit comments

Comments
 (0)