Skip to content

Commit b3a3491

Browse files
committed
fix
1 parent e848eec commit b3a3491

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/java/com/auth0/client/mgmt/ManagementAPI.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ public static ManagementAPI.Builder newBuilder(String domain, String apiToken) {
6767
return new ManagementAPI.Builder(domain, apiToken);
6868
}
6969

70+
/**
71+
* Instantiate a new {@link Builder} to configure and build a new ManagementAPI client.
72+
*
73+
* @param domain the tenant's domain. Must be a non-null valid HTTPS domain.
74+
* @param tokenProvider the API Token provider to use when making requests.
75+
* @return a Builder for further configuration.
76+
*/
77+
public static ManagementAPI.Builder newBuilder(String domain, TokenProvider tokenProvider) {
78+
return new ManagementAPI.Builder(domain, tokenProvider);
79+
}
80+
7081
private ManagementAPI(String domain, TokenProvider tokenProvider, Auth0HttpClient httpClient) {
7182
Asserts.assertNotNull(domain, "domain");
7283
Asserts.assertNotNull(tokenProvider, "token provider");

0 commit comments

Comments
 (0)