Commit aca8804
Add custom_attributes field to OrganizationMembership (#318)
* Add idpAttributes field to OrganizationMembership
- Add @Property array<string, mixed> $idpAttributes to PHPDoc
- Add "idpAttributes" to RESOURCE_ATTRIBUTES array
- Add "idp_attributes" => "idpAttributes" to RESPONSE_TO_RESOURCE_KEY mapping
- Update test fixtures to include idp_attributes field
- All 13 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>
* Rename idp_attributes to custom_attributes
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 8d63a31 commit aca8804
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1750 | 1750 | | |
1751 | 1751 | | |
1752 | 1752 | | |
| 1753 | + | |
1753 | 1754 | | |
1754 | 1755 | | |
1755 | 1756 | | |
| |||
1774 | 1775 | | |
1775 | 1776 | | |
1776 | 1777 | | |
| 1778 | + | |
1777 | 1779 | | |
1778 | 1780 | | |
1779 | 1781 | | |
| |||
1798 | 1800 | | |
1799 | 1801 | | |
1800 | 1802 | | |
| 1803 | + | |
1801 | 1804 | | |
1802 | 1805 | | |
1803 | 1806 | | |
| |||
0 commit comments