mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
parent
aa18dcdb4e
commit
aa244c4ea9
1 changed files with 2 additions and 1 deletions
|
|
@ -137,6 +137,7 @@ export class OidcModel {
|
|||
|
||||
const config = await AppConfig.getConfig();
|
||||
|
||||
const baseUrl = config.auth.baseUrl;
|
||||
const oidcBaseUrl = config.auth.singleSignOnUrl;
|
||||
const emailAttribute = config.auth.singleSignOnEmailAttribute;
|
||||
const oidcOptions = oidcBaseUrl.startsWith('http://')
|
||||
|
|
@ -153,7 +154,7 @@ export class OidcModel {
|
|||
|
||||
const tokens = await openIdClient.authorizationCodeGrant(
|
||||
oidcConfig,
|
||||
new URL(request.url),
|
||||
new URL(`${baseUrl}?${urlSearchParams.toString()}`),
|
||||
{
|
||||
pkceCodeVerifier: expectedCodeVerifier,
|
||||
expectedState,
|
||||
|
|
|
|||
Loading…
Reference in a new issue