Added
UserProfile
has now the following properties:givenName
,familyName
,userMetadata
,appMetadata
andemailVerified
#28 (hzalaz)- New method
AuthenticationAPIClient#token(code, redirectURI)
to call/oauth/token
endpoint. #27 (arcseldon, hzalaz)
Fixed
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> {...});