Files
MeshCentral/webserver.js
Szymon Sypula e89f97aaed Fix OIDC login: ensure Passport callback is defined (#7312)
MeshCentral OIDC strategy was throwing `TypeError: done is not a function`
because the callback was not properly passed when using openid-client.

This patch wraps the OIDC callback to detect missing callback parameters,
extracts user info from the id_token if needed, and ensures `done()` is
called in all code paths, including async group fetching. This restores
functional OIDC logins for Azure AD/Keycloak.

Tested on Azure B2C OIDC

Co-authored-by: Szymon Sypula <szymon.sypula@dieboldnixdorf.com>
2025-10-24 14:03:58 +01:00

701 KiB