Fix backchannel logout always returning 501

global.ServerSettings is a plain JSON object from toJSON(), so the
isOpenIDAuthSettingsValid getter was always undefined. Use
Database.serverSettings instead, matching the rest of the codebase.
This commit is contained in:
Denis Arnst 2026-02-05 19:35:50 +01:00
parent d5047978a8
commit b3d63f4158
No known key found for this signature in database
GPG key ID: D5866C58940197BF

View file

@ -459,7 +459,7 @@ class Auth {
if (!global.ServerSettings.authOpenIDBackchannelLogoutEnabled) {
return res.status(501).json({ error: 'not_implemented' })
}
if (!global.ServerSettings.authActiveAuthMethods.includes('openid') || !global.ServerSettings.isOpenIDAuthSettingsValid) {
if (!global.ServerSettings.authActiveAuthMethods.includes('openid') || !Database.serverSettings.isOpenIDAuthSettingsValid) {
return res.status(501).json({ error: 'not_implemented' })
}