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

Get new Credentials using a Refresh Token #43

Merged
merged 1 commit into from
Nov 25, 2016
Merged

Conversation

lbalmaceda
Copy link
Contributor

@lbalmaceda lbalmaceda commented Nov 24, 2016

Use the /oauth/token endpoint to get new Credentials given a valid refresh token.

Usage:

AuthenticationAPIClient client = new AuthenticationAPIClient(getAccount())
client.renewAuth("{refresh_token}")
   .addParameter("scope", "openid profile email") //Can specify more parameters
   .start(new BaseCallback<Credentials>() {
       @Override
       public void onSuccess(Credentials payload) { }

       @Override
       public void onFailure(AuthenticationException error) { }
   });

@hzalaz hzalaz added this to the 1.2.0 milestone Nov 25, 2016
@hzalaz hzalaz merged commit 957c3ca into master Nov 25, 2016
@hzalaz hzalaz deleted the refresh-token-via-token branch November 25, 2016 18:24
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.

None yet

3 participants