Skip to content

Add custom_attributes field to SSO Profile #434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mattgd
Copy link
Contributor

@mattgd mattgd commented Apr 17, 2025

Description

Add custom_attributes field to SSO Profile.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

@mattgd mattgd self-assigned this Apr 17, 2025
Copy link

linear bot commented Apr 17, 2025

profile=None,
role=None,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was incorrect in fixture, just fixing.

@@ -23,7 +23,8 @@ class Profile(WorkOSModel):
idp_id: str
role: Optional[ProfileRole] = None
groups: Optional[Sequence[str]] = None
raw_attributes: Mapping[str, Any]
custom_attributes: Optional[Mapping[str, Any]] = None
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to add a generic type for custom_attributes that developers can override, but ran into some mypy limitations with default values for generic types. Keeping this as-is for now.

@mattgd mattgd marked this pull request as ready for review April 23, 2025 19:45
@mattgd mattgd requested a review from a team as a code owner April 23, 2025 19:45
@mattgd mattgd requested a review from faroceann April 23, 2025 19:45
@mattgd mattgd merged commit aa98f87 into main Apr 25, 2025
6 checks passed
@mattgd mattgd deleted the feature/dsync-2978-add-sso-profile-custom_attributes-to-python-sdk branch April 25, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants