json.put("client_secret", properties.get("auth0.client_secret"));
json.put("redirect_uri", req.getRequestURL().toString());
json.put("grant_type", "authorization_code");
json.put("code", authorizationCode);
JSONResource tokenInfo = resty.json(tokenUri, content(json));
return new Tokens(tokenInfo.toObject());
} catch (Exception ex) {
throw new IllegalStateException("Cannot get Token from Auth0", ex);
}