Skip to content

breaking: Remove the Management API support#937

Merged
pmathew92 merged 4 commits intov4_developmentfrom
SDK-7916
Mar 13, 2026
Merged

breaking: Remove the Management API support#937
pmathew92 merged 4 commits intov4_developmentfrom
SDK-7916

Conversation

@pmathew92
Copy link
Contributor

@pmathew92 pmathew92 commented Mar 12, 2026

Changes

This PR removed all classes related to the UsersAPIClient class as we are dropping the support for management APIs from the SDK

Migration

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

@pmathew92 pmathew92 requested a review from a team as a code owner March 12, 2026 10:26
Copilot AI review requested due to automatic review settings March 12, 2026 10:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

@utkrishtsahu
Copy link
Contributor

utkrishtsahu commented Mar 13, 2026

@pmathew92
In Example.md file (- Management API(#management-api) section should also be removed.
Also things related to Managment API's

@utkrishtsahu
Copy link
Contributor

Also in Agents.md file in Repository structure too we cane remove management/ # Management API client
Although its internal.

@pmathew92
Copy link
Contributor Author

pmathew92 commented Mar 13, 2026

Also in Agents.md file in Repository structure too we cane remove management/ # Management API client
Although its internal.

Agents.md file will be updated all together once all dev for v4 is done @utkrishtsahu

@pmathew92 pmathew92 merged commit 962addf into v4_development Mar 13, 2026
6 checks passed
@pmathew92 pmathew92 deleted the SDK-7916 branch March 13, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants