Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/maven-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:

- name: Publish Android/Java Packages to Maven
shell: bash
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -PisSnapshot=false --stacktrace
run: ./gradlew publishToSonatype closeSonatypeStagingRepository -PisSnapshot=false --stacktrace
env:
JAVA_HOME: ${{ env.JAVA_HOME }}
MAVEN_USERNAME: ${{ inputs.ossr-username }}
Expand Down
13 changes: 13 additions & 0 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,22 @@ AuthAPI auth = AuthAPI.newBuilder("DOMAIN", "CLIENT-ID", "CLIENT-SECRET")
.withHttpClient(client)
.build();

```

```java

ManagementAPI mgmt = ManagementAPI.newBuilder("DOMAIN", "API-TOKEN")
.withHttpClient(client)
.build();

// OR

TokenProvider tokenProvider = SimpleTokenProvider.create("API-TOKEN");

ManagementAPI mgmt = ManagementAPI.newBuilder("DOMAIN", tokenProvider)
.withHttpClient(client)
.build();

```

If the `DefaultHttpClient` does not support your required networking client configuration, you may choose to implement
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ Create a `ManagementAPI` instance by providing the domain from the [Application
ManagementAPI mgmt = ManagementAPI.newBuilder("{YOUR_DOMAIN}", "{YOUR_API_TOKEN}").build();
```

OR

Create a `ManagementAPI` instance by providing the domain from the [Application dashboard](https://manage.auth0.com/#/applications) and Token Provider.

```java
TokenProvider tokenProvider = SimpleTokenProvider.create("{YOUR_API_TOKEN}");
ManagementAPI mgmt = ManagementAPI.newBuilder("{YOUR_DOMAIN}", TokenProvider).build();
```

The Management API is organized by entities represented by the Auth0 Management API objects.

```java
Expand Down