Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add userInfo method #44

Merged
merged 3 commits into from
Nov 30, 2016
Merged

Add userInfo method #44

merged 3 commits into from
Nov 30, 2016

Conversation

lbalmaceda
Copy link
Contributor

@lbalmaceda lbalmaceda commented Nov 24, 2016

Use /userInfo endpoint to get the user profile associated with a given Auth0 access token.

Usage:

AuthenticationAPIClient client = new AuthenticationAPIClient(getAccount())
   .userInfo("access_token")
   .start(callback); //Callback receives the Credentials.

Important
The getProfileAfter() method is now using the userInfo method.

@lbalmaceda lbalmaceda force-pushed the feat-userinfo branch 2 times, most recently from 59edd73 to 622343d Compare November 25, 2016 15:38
@lbalmaceda lbalmaceda changed the title Add userInfo method. Deprecate tokenInfo. Add userInfo method Nov 25, 2016
@@ -327,6 +330,29 @@ public AuthenticationRequest loginWithEmail(@NonNull String email, @NonNull Stri
}

/**
* Fetch the user profile associated with the given Auth0 access token.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returns the information of the user associated with the given access_token

@hzalaz hzalaz merged commit 8323003 into master Nov 30, 2016
@hzalaz hzalaz deleted the feat-userinfo branch November 30, 2016 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants