diff --git a/lib/src/core/authentication-core.ts b/lib/src/core/authentication-core.ts index 926820d8..b4fb64ea 100644 --- a/lib/src/core/authentication-core.ts +++ b/lib/src/core/authentication-core.ts @@ -76,6 +76,10 @@ export class AuthenticationCore { 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) {