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

Refresh tokens are not returned by token end point #751

Closed
karuatcsg opened this issue Jan 22, 2015 · 4 comments
Closed

Refresh tokens are not returned by token end point #751

karuatcsg opened this issue Jan 22, 2015 · 4 comments
Labels

Comments

@karuatcsg
Copy link

Token end point is returning all but refresh tokens for a client that is supposed to issue refresh tokens. Please see a sample output from token end point

{
"access_token" : "eyJhbGciOiJSUzI....",
"token_type" : "Bearer",
"expires_in" : 3599,
"scope" : "email openid",
"id_token" : "eyJhbGci..."
}

Do we need to do anything specific to obtain refresh tokens?

@jricher
Copy link
Member

jricher commented Jan 22, 2015

Yes, you must request the "offline_access" scope in order to obtain a refresh token.

@karuatcsg
Copy link
Author

Thank you, that solved it. Now it is dropping id_token. How can we get id_token also?

@jricher
Copy link
Member

jricher commented Jan 22, 2015

To get the id token, you have to include the "openid" scope. To get both the id token and refresh token, you have to include both the "openid" and "offline_access" scopes in the request.

@jricher jricher closed this as completed Jan 22, 2015
@karuatcsg
Copy link
Author

Thank you, appreciate your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants