Skip to content

Commit 154d668

Browse files
authored
Expose organization_id on profiles (#90)
1 parent fc02f5e commit 154d668

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/test_sso.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def mock_profile(self):
2828
"email": "[email protected]",
2929
"first_name": "WorkOS",
3030
"last_name": "Demo",
31+
"organization_id": "org_01FG53X8636WSNW2WEKB2C31ZB",
3132
"connection_id": "conn_01EMH8WAK20T42N2NBMNBCYHAG",
3233
"connection_type": "OktaSAML",
3334
"idp_id": "00u1klkowm8EGah2H357",
@@ -194,6 +195,7 @@ def test_get_profile_and_token_returns_expected_workosprofile_object(
194195
"id": mock_profile["id"],
195196
"email": mock_profile["email"],
196197
"first_name": mock_profile["first_name"],
198+
"organization_id": mock_profile["organization_id"],
197199
"connection_id": mock_profile["connection_id"],
198200
"connection_type": mock_profile["connection_type"],
199201
"last_name": mock_profile["last_name"],

workos/resources/sso.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class WorkOSProfile(WorkOSBaseResource):
1313
"email",
1414
"first_name",
1515
"last_name",
16+
"organization_id",
1617
"connection_id",
1718
"connection_type",
1819
"idp_id",

0 commit comments

Comments
 (0)