Fix OIDC login crash when groups claim is null #22
Reference in New Issue
Block a user
Delete Branch "fix/oidc-null-groups"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
claims.get("groups") or []instead ofclaims.get("groups", [])so that an explicitnullvalue from the OIDC provider is coerced to an empty listValueError: ldap_groups is non nullable field, but null was passedduring OIDC callbackTest plan
"groups": nullin claimsgroupsclaim entirely🤖 Generated with Claude Code
Use `claims.get("groups") or []` instead of `claims.get("groups", [])` so that an explicit `null` value is coerced to an empty list, preventing a ValueError on the non-nullable ldap_groups field. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>