Skip to content

Releases: auth0/auth0-java

1.4.0

23 May 19:52
2f0e3bd
Compare
Choose a tag to compare

1.4.0 (2017-11-30)

Full Changelog

Added

Breaking changes

1.3.1

23 May 19:53
2635094
Compare
Choose a tag to compare

1.3.1 (2017-11-01)

Full Changelog
Closed issues

  • NullPointerException, StdDeserializer #78

Fixed

1.3.0

23 May 19:53
Compare
Choose a tag to compare

1.3.0 (2017-09-08)

Full Changelog

Added

  • implemented /api/v2/grants endpoint of auth0 management api #74 (neshanjo)

Changed

  • removed unmotivated throwing of UnsupportedEncodingException #75 (neshanjo)

1.2.0

23 May 19:54
Compare
Choose a tag to compare

1.2.0 (2017-08-07)

Full Changelog
Closed issues

  • Get AD connection's provisioning_ticket_url property #66

Added

  • Add support for provisioning_ticket_url property to Connection POJO #67 (unnamed38)
  • Add public User constructor without parameters #59 (lbalmaceda)

Removed

1.1.0

23 May 19:54
Compare
Choose a tag to compare

1.1.0 (2017-05-23)

Full Changelog

Added

Changed

Fixed

1.0.0

31 Jan 15:22
1443cc5
Compare
Choose a tag to compare

1.0.0 (2017-01-30)

Reworked Auth0 SDK for java by providing better support for non-Android application (for Android please use Auth0.Android).

The changes from v0 includes:

  • OAuth 2.0 endpoints in Authentication API
  • Sync calls by default
  • Added Management API endpoints
  • Better error handling for Auth and Management API erros

Auth API

The implementation is based on the Authentication API Docs.

Create a new AuthAPI instance by providing the client data from the dashboard.

AuthAPI auth = new AuthAPI("{YOUR_DOMAIN}", "{YOUR_CLIENT_ID}", "{YOUR_CLIENT_SECRET}");

Management API

The implementation is based on the Management API Docs.

Create a new ManagementAPI instance by providing the domain from the client dashboard and the API Token. Click here for more information on how to obtain a valid API Token.

ManagementAPI mgmt = new ManagementAPI("{YOUR_DOMAIN}", "{YOUR_API_TOKEN}");

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.

  • Client Grants: See Docs. Access the methods by calling mgmt.clientGrants().
  • Clients: See Docs. Access the methods by calling mgmt.clients().
  • Connections: See Docs. Access the methods by calling mgmt.connections().
  • Device Credentials: See Docs. Access the methods by calling mgmt.deviceCredentials().
  • Logs: See Docs. Access the methods by calling mgmt.logEvents().
  • Rules: See Docs. Access the methods by calling mgmt.rules().
  • User Blocks: See Docs. Access the methods by calling mgmt.userBlocks().
  • Users: See Docs. Access the methods by calling mgmt.users().
  • Blacklists: See Docs. Access the methods by calling mgmt.blacklists().
  • Emails: See Docs. Access the methods by calling mgmt.emailProvider().
  • Guardian: See Docs. Access the methods by calling mgmt.guardian().
  • Stats: See Docs. Access the methods by calling mgmt.stats().
  • Tenants: See Docs. Access the methods by calling mgmt.tenants().
  • Tickets: See Docs. Access the methods by calling mgmt.tickets().

0.4.0

06 Jun 18:51
4de560d
Compare
Choose a tag to compare

Full Changelog

Added

  • UserProfile has now the following properties: givenName, familyName, userMetadata, appMetadata and emailVerified #28 (hzalaz)
  • New method AuthenticationAPIClient#token(code, redirectURI) to call /oauth/token endpoint. #27 (arcseldon, hzalaz)

Fixed

  • UserProfile was not properly parsed from JSON #28 (hzalaz)

Breaking changes

The method AuthenticationAPIClient#token(code, codeVerifier, redirectURI) was replaced by AuthenticationAPIClient#token(String, String). To perform a request to /oauth/token you need to provide either a client_secret (private clients) or the code_verifier (public clients) used to generate the challenge sent to /authorize.

AuthenticationAPIClient client = new AuthenticationAPIClient(new Auth0("your_clientId", "your_domain"));

// Public clients
client
     .token("code", "redirect_uri")
     .setCodeVerifier("code_verifier")
     .start(new Callback<Credentials> {...});

// Private clients
 client
     .token("code", "redirect_uri")
     .setClientSecret("client_secret")
     .start(new Callback<Credentials> {...});

0.3.0

03 Jun 22:38
ea2e788
Compare
Choose a tag to compare

Full Changelog

Implemented enhancements:

Merged pull requests:

  • Make ParameterBuilder ignore null parameters #25 (lbalmaceda)
  • Do not add request body if there's nothing to add #23 (nikolaseu)

0.2.1

03 Jun 22:38
fd8870c
Compare
Choose a tag to compare

Full Changelog

Merged pull requests:

0.2.0

03 Jun 22:38
eded9fd
Compare
Choose a tag to compare

Full Changelog

Merged pull requests:

  • add method to call /oauth/token to the AuthenticationAPIClient #20 (lbalmaceda)