id_token_signed_respo... should be in new Client

This commit is contained in:
basti 2024-04-03 22:52:49 +02:00
parent 6c9a811472
commit 304d0f6d43

View File

@ -85,12 +85,12 @@ class Auth {
token_endpoint: global.ServerSettings.authOpenIDTokenURL, token_endpoint: global.ServerSettings.authOpenIDTokenURL,
userinfo_endpoint: global.ServerSettings.authOpenIDUserInfoURL, userinfo_endpoint: global.ServerSettings.authOpenIDUserInfoURL,
jwks_uri: global.ServerSettings.authOpenIDJwksURL, jwks_uri: global.ServerSettings.authOpenIDJwksURL,
end_session_endpoint: global.ServerSettings.authOpenIDLogoutURL, end_session_endpoint: global.ServerSettings.authOpenIDLogoutURL
id_token_signed_response_alg: global.ServerSettings.authOpenIDTokenSigningAlgorithm
}).Client }).Client
const openIdClient = new openIdIssuerClient({ const openIdClient = new openIdIssuerClient({
client_id: global.ServerSettings.authOpenIDClientID, client_id: global.ServerSettings.authOpenIDClientID,
client_secret: global.ServerSettings.authOpenIDClientSecret client_secret: global.ServerSettings.authOpenIDClientSecret,
id_token_signed_response_alg: global.ServerSettings.authOpenIDTokenSigningAlgorithm
}) })
passport.use('openid-client', new OpenIDClient.Strategy({ passport.use('openid-client', new OpenIDClient.Strategy({
client: openIdClient, client: openIdClient,