Skip to content

Commit

Permalink
Merge pull request #253 from dasuni-30/fix/252
Browse files Browse the repository at this point in the history
Fix client secret dropping issue from the js-core level
  • Loading branch information
dasuni-30 authored Jul 31, 2024
2 parents 6e98a5f + b9206c7 commit 4672378
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/core/authentication-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export class AuthenticationCore<T> {
authorizeRequestParams.set("response_type", "code");
authorizeRequestParams.set("client_id", configData.clientID);

if (configData.clientSecret && configData.clientSecret.trim().length > 0) {
authorizeRequestParams.set("client_secret", configData.clientSecret);
}

let scope: string = OIDC_SCOPE;

if (configData.scope && configData.scope.length > 0) {
Expand Down

0 comments on commit 4672378

Please sign in to comment.