Skip to content

Commit 1443cc5

Browse files
committed
Release 1.0.0
1 parent dc076ba commit 1443cc5

4 files changed

Lines changed: 55 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Change Log
2+
3+
## [1.0.0](https://github.com/auth0/auth0-java/tree/1.0.0) (2017-01-30)
4+
5+
Reworked Auth0 SDK for java by providing better support for non-Android application (for Android please use [Auth0.Android](https://github.com/auth0/Auth0.Android)).
6+
7+
The changes from v0 includes:
8+
9+
- OAuth 2.0 endpoints in Authentication API
10+
- Sync calls by default
11+
- Added Management API endpoints
12+
- Better error handling for Auth and Management API erros
13+
14+
### Auth API
15+
16+
The implementation is based on the [Authentication API Docs](https://auth0.com/docs/api/authentication).
17+
18+
Create a new `AuthAPI` instance by providing the client data from the [dashboard](https://manage.auth0.com/#/clients).
19+
20+
```java
21+
AuthAPI auth = new AuthAPI("{YOUR_DOMAIN}", "{YOUR_CLIENT_ID}", "{YOUR_CLIENT_SECRET}");
22+
```
23+
24+
### Management API
25+
26+
The implementation is based on the [Management API Docs](https://auth0.com/docs/api/management/v2).
27+
28+
Create a new `ManagementAPI` instance by providing the domain from the [client dashboard](https://manage.auth0.com/#/clients) and the API Token. Click [here](https://auth0.com/docs/api/management/v2#!/Introduction/Getting_an_API_token) for more information on how to obtain a valid API Token.
29+
30+
```java
31+
ManagementAPI mgmt = new ManagementAPI("{YOUR_DOMAIN}", "{YOUR_API_TOKEN}");
32+
```
33+
34+
The Management API is divided into different entities. Each of them have the list, create, update, delete and update methods plus a few more if corresponds. The calls are authenticated using the API Token given in the `ManagementAPI` instance creation and must contain the `scope` required by each entity. See the javadoc for details on which `scope` is expected for each call.
35+
36+
* **Client Grants:** See [Docs](https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants). Access the methods by calling `mgmt.clientGrants()`.
37+
* **Clients:** See [Docs](https://auth0.com/docs/api/management/v2#!/Clients/get_clients). Access the methods by calling `mgmt.clients()`.
38+
* **Connections:** See [Docs](https://auth0.com/docs/api/management/v2#!/Connections/get_connections). Access the methods by calling `mgmt.connections()`.
39+
* **Device Credentials:** See [Docs](https://auth0.com/docs/api/management/v2#!/Device_Credentials/get_device_credentials). Access the methods by calling `mgmt.deviceCredentials()`.
40+
* **Logs:** See [Docs](https://auth0.com/docs/api/management/v2#!/Logs/get_logs). Access the methods by calling `mgmt.logEvents()`.
41+
* **Rules:** See [Docs](https://auth0.com/docs/api/management/v2#!/Rules/get_rules). Access the methods by calling `mgmt.rules()`.
42+
* **User Blocks:** See [Docs](https://auth0.com/docs/api/management/v2#!/User_Blocks/get_user_blocks). Access the methods by calling `mgmt.userBlocks()`.
43+
* **Users:** See [Docs](https://auth0.com/docs/api/management/v2#!/Users/get_users). Access the methods by calling `mgmt.users()`.
44+
* **Blacklists:** See [Docs](https://auth0.com/docs/api/management/v2#!/Blacklists/get_tokens). Access the methods by calling `mgmt.blacklists()`.
45+
* **Emails:** See [Docs](https://auth0.com/docs/api/management/v2#!/Emails/get_provider). Access the methods by calling `mgmt.emailProvider()`.
46+
* **Guardian:** See [Docs](https://auth0.com/docs/api/management/v2#!/Guardian/get_factors). Access the methods by calling `mgmt.guardian()`.
47+
* **Stats:** See [Docs](https://auth0.com/docs/api/management/v2#!/Stats/get_active_users). Access the methods by calling `mgmt.stats()`.
48+
* **Tenants:** See [Docs](https://auth0.com/docs/api/management/v2#!/Tenants/get_settings). Access the methods by calling `mgmt.tenants()`.
49+
* **Tickets:** See [Docs](https://auth0.com/docs/api/management/v2#!/Tickets/post_email_verification). Access the methods by calling `mgmt.tickets()`.
50+

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ or Gradle:
2525
compile 'com.auth0:auth0:1.0.0'
2626
```
2727

28-
Make sure your client type is set to `Non Interactive Client`.
29-
3028

3129
### Android
3230

@@ -510,5 +508,5 @@ This project is licensed under the MIT license. See the [LICENSE](LICENSE) file
510508
[mit-url]: https://raw.githubusercontent.com/auth0/auth0-java/master/LICENSE
511509
[maven-badge]: https://img.shields.io/maven-central/v/com.auth0/auth0.svg
512510
[maven-url]: http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.auth0%22%20AND%20a%3A%22auth0%22
513-
[jcenter-badge]: https://api.bintray.com/packages/auth0/lock-android/auth0/images/download.svg
514-
[jcenter-url]: https://bintray.com/auth0/lock-android/auth0/_latestVersion
511+
[jcenter-badge]: https://api.bintray.com/packages/auth0/java/auth0/images/download.svg
512+
[jcenter-url]: https://bintray.com/auth0/java/auth0/_latestVersion

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
group = 'com.auth0'
2+
13
apply plugin: 'com.auth0.gradle.oss-library.java'
24
apply plugin: 'jacoco'
35

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = 'auth0-java'
1+
rootProject.name = 'auth0'

0 commit comments

Comments
 (0)