Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/test_sso.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ def mock_profile(self):
"last_name": "Demo",
"connection_type": "OktaSAML",
"idp_id": "00u1klkowm8EGah2H357",
"raw_attributes": {
"email": "demo@workos-okta.com",
"first_name": "WorkOS",
"last_name": "Demo",
},
}

@pytest.fixture
Expand Down Expand Up @@ -133,6 +138,11 @@ def test_get_profile_returns_expected_workosprofile_object(
"connection_type": mock_profile["connection_type"],
"last_name": mock_profile["last_name"],
"idp_id": mock_profile["idp_id"],
"raw_attributes": {
"email": mock_profile["raw_attributes"]["email"],
"first_name": mock_profile["raw_attributes"]["first_name"],
"last_name": mock_profile["raw_attributes"]["last_name"],
},
},
"access_token": "01DY34ACQTM3B1CSX1YSZ8Z00D",
}
Expand Down
2 changes: 1 addition & 1 deletion workos/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

__package_url__ = "https://github.com/workos-inc/workos-python"

__version__ = "0.4.2"
__version__ = "0.5.0"

__author__ = "WorkOS"

Expand Down
3 changes: 2 additions & 1 deletion workos/resources/sso.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class WorkOSProfile(WorkOSBaseResource):
"""Representation of a User Profile as returned by WorkOS through the SSO feature.

Attributes:
OBJECT_FIELDS (list): List of fields a WorkOSProfile is comprised of.
"""
Expand All @@ -15,4 +15,5 @@ class WorkOSProfile(WorkOSBaseResource):
"last_name",
"connection_type",
"idp_id",
"raw_attributes",
]