breaking: Remove the Management API support#937
Conversation
There was a problem hiding this comment.
Pull request overview
Removes the Auth0.Android SDK’s Management API surface area (notably UsersAPIClient and related exception/callback types) and updates the sample app + v4 migration guide accordingly.
Changes:
- Deleted Management API client types (
UsersAPIClient,ManagementException,ManagementCallback) and their tests/utilities. - Updated the sample “Database Login” screen to remove Management API UI/actions and adjusted requested scopes.
- Documented the breaking change and migration path in
V4_MIGRATION_GUIDE.md.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| sample/src/main/res/layout/fragment_database_login.xml | Removes Management API-related UI elements from the sample layout. |
| sample/src/main/java/com/auth0/sample/DatabaseLoginFragment.kt | Removes Management API sample actions/imports and adjusts login scopes/formatting. |
| auth0/src/test/java/com/auth0/android/util/MockManagementCallback.java | Removes Management API callback test utility. |
| auth0/src/test/java/com/auth0/android/util/ManagementCallbackMatcher.java | Removes matcher utility tied to Management API callbacks. |
| auth0/src/test/java/com/auth0/android/management/UsersAPIClientTest.kt | Removes tests for deleted UsersAPIClient. |
| auth0/src/test/java/com/auth0/android/management/ManagementExceptionTest.kt | Removes tests for deleted ManagementException. |
| auth0/src/main/java/com/auth0/android/result/UserProfile.kt | Updates KDoc to remove reference to UsersAPIClient. |
| auth0/src/main/java/com/auth0/android/management/UsersAPIClient.kt | Deletes UsersAPIClient. |
| auth0/src/main/java/com/auth0/android/management/ManagementException.kt | Deletes ManagementException. |
| auth0/src/main/java/com/auth0/android/callback/ManagementCallback.kt | Deletes ManagementCallback. |
| V4_MIGRATION_GUIDE.md | Adds migration guidance for removal of Management API support. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@pmathew92 |
|
Also in Agents.md file in Repository structure too we cane remove management/ # Management API client |
Agents.md file will be updated all together once all dev for v4 is done @utkrishtsahu |
Changes
This PR removed all classes related to the
UsersAPIClientclass as we are dropping the support for management APIs from the SDKMigration
Consumers should expose dedicated endpoints in their own backend and call the Management API from there using a machine-to-machine token, obtained via the Client Credentials flow. See the
v4 Migration Guide for more details.
Checklist
I have read the Auth0 general contribution guidelines
I have read the Auth0 Code of Conduct
All existing and new tests complete without errors