-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add custom_attributes field to SSO Profile #434
Conversation
profile=None, | ||
role=None, |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
…tributes-to-python-sdk
…tributes-to-python-sdk
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.
If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.