File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ def mock_profile(self):
2828 "last_name" : "Demo" ,
2929 "connection_type" : "OktaSAML" ,
3030 "idp_id" : "00u1klkowm8EGah2H357" ,
31+ "raw_attributes" : {
32+ "email" : "demo@workos-okta.com" ,
33+ "first_name" : "WorkOS" ,
34+ "last_name" : "Demo" ,
35+ },
3136 }
3237
3338 @pytest .fixture
@@ -133,6 +138,11 @@ def test_get_profile_returns_expected_workosprofile_object(
133138 "connection_type" : mock_profile ["connection_type" ],
134139 "last_name" : mock_profile ["last_name" ],
135140 "idp_id" : mock_profile ["idp_id" ],
141+ "raw_attributes" : {
142+ "email" : mock_profile ["raw_attributes" ]["email" ],
143+ "first_name" : mock_profile ["raw_attributes" ]["first_name" ],
144+ "last_name" : mock_profile ["raw_attributes" ]["last_name" ],
145+ },
136146 },
137147 "access_token" : "01DY34ACQTM3B1CSX1YSZ8Z00D" ,
138148 }
Original file line number Diff line number Diff line change 1212
1313__package_url__ = "https://github.com/workos-inc/workos-python"
1414
15- __version__ = "0.4.2 "
15+ __version__ = "0.5.0 "
1616
1717__author__ = "WorkOS"
1818
Original file line number Diff line number Diff line change 33
44class WorkOSProfile (WorkOSBaseResource ):
55 """Representation of a User Profile as returned by WorkOS through the SSO feature.
6-
6+
77 Attributes:
88 OBJECT_FIELDS (list): List of fields a WorkOSProfile is comprised of.
99 """
@@ -15,4 +15,5 @@ class WorkOSProfile(WorkOSBaseResource):
1515 "last_name" ,
1616 "connection_type" ,
1717 "idp_id" ,
18+ "raw_attributes" ,
1819 ]
You can’t perform that action at this time.
0 commit comments