mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
scim: Make "id" a string in our responses.
In SCIM, this is always a string, even if numerical. While SCIM clients seem to handle our prior behavior, this was a bug nonetheless.
This commit is contained in:
committed by
Tim Abbott
parent
88d1dcaf02
commit
3052d0cca7
@@ -34,7 +34,7 @@ class SCIMTestCase(ZulipTestCase):
|
||||
def generate_user_schema(self, user_profile: UserProfile) -> dict[str, Any]:
|
||||
return {
|
||||
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
|
||||
"id": user_profile.id,
|
||||
"id": str(user_profile.id),
|
||||
"userName": user_profile.delivery_email,
|
||||
"name": {"formatted": user_profile.full_name},
|
||||
"displayName": user_profile.full_name,
|
||||
|
||||
Reference in New Issue
Block a user