Skip to content

0.4.0

Compare
Choose a tag to compare
@hzalaz hzalaz released this 06 Jun 18:51
· 932 commits to master since this release
4de560d

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