Skip to content
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

Deprecate methods related to updating user attributes using the Management API #815

Merged
merged 1 commit into from Dec 18, 2023

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Dec 16, 2023

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

📋 Changes

This PR marks as deprecated the patch(_:attributes:) method of the Management API client, as it's no longer possible to update user attributes such as email and password from native clients.

Also, the respective methods of the UserPatchAttributes class –taken as input by the above method– were also marked as deprecated. The only method of UserPatchAttributes that was not marked as deprecated is the one that allows setting new user_metadata values, as that's the only user attribute that can still be updated from native clients.

📎 References

See https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-tokens-for-single-page-applications -> talks about SPAs but also applies to native apps (both are public clients)

Screenshot 2023-12-16 at 19 26 37

@Widcket Widcket added the review:tiny Tiny review label Dec 16, 2023
@Widcket Widcket requested a review from a team as a code owner December 16, 2023 22:29
@Widcket Widcket enabled auto-merge (squash) December 16, 2023 23:23
@Widcket Widcket merged commit 2af7055 into master Dec 18, 2023
11 of 12 checks passed
@Widcket Widcket deleted the deprecate/management-client-patch branch December 18, 2023 08:07
@Widcket Widcket mentioned this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:tiny Tiny review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants