Skip to content

Commit 4672378

Browse files
authored
Merge pull request #253 from dasuni-30/fix/252
Fix client secret dropping issue from the js-core level
2 parents 6e98a5f + b9206c7 commit 4672378

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/core/authentication-core.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ export class AuthenticationCore<T> {
7676
authorizeRequestParams.set("response_type", "code");
7777
authorizeRequestParams.set("client_id", configData.clientID);
7878

79+
if (configData.clientSecret && configData.clientSecret.trim().length > 0) {
80+
authorizeRequestParams.set("client_secret", configData.clientSecret);
81+
}
82+
7983
let scope: string = OIDC_SCOPE;
8084

8185
if (configData.scope && configData.scope.length > 0) {

0 commit comments

Comments
 (0)