Skip to content

Conversation

szymonsypula
Copy link

@szymonsypula szymonsypula commented Sep 30, 2025

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

Fixes: #7303

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
@szymonsypula szymonsypula marked this pull request as draft October 1, 2025 13:39
@szymonsypula szymonsypula marked this pull request as ready for review October 9, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OIDC callback fails with TypeError: verified is not a function

1 participant