github auth0/auth0-java 0.4.0

latest releases: 2.12.0, 2.11.0, 2.10.1...
8 years ago

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> {...});

Don't miss a new auth0-java release

NewReleases is sending notifications on new releases.