use of us.monoid.web.JSONResource in project nextprot-api by calipho-sib.
the class NextprotAuth0EndpointImpl method fetchUser.
@Cacheable("user-auth")
public Auth0User fetchUser(String accessToken) throws IOException, JSONException {
Resty resty = new Resty();
String userInfoUri = getUserInfoUri(accessToken);
JSONResource json = resty.json(userInfoUri);
return new Auth0User(json.toObject());
}
Aggregations