Commit 1fdda5f
Add custom_attributes field to OrganizationMembership (#524)
* Add idp_attributes field to OrganizationMembership
- Add idp_attributes: dict[str, Any] to OrganizationMembership model
- Update MockOrganizationMembership fixture
- All organization_membership tests pass
This change adds support for IDP custom attributes on organization
memberships, which are sourced from the identity provider and stored
as customAttributes in the API.
Related to workos/workos PR #50470
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Fix Python 3.8 compatibility for idp_attributes type
Use Dict[str, Any] instead of dict[str, Any] for Python 3.8 compatibility.
The lowercase dict syntax is only available in Python 3.9+.
Fixes issue identified by Greptile bot review.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Rename idp_attributes to custom_attributes
* Use Mapping instead of Dict for read-only custom_attributes
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 57978c1 commit 1fdda5f
File tree
2 files changed
+3
-1
lines changed- src/workos/types/user_management
- tests/utils/fixtures
2 files changed
+3
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
0 commit comments