Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Avoid OAuth2Credentials id_token going out of sync after a token refresh. #337

Merged
merged 1 commit into from
Dec 14, 2015

Conversation

danring
Copy link
Contributor

@danring danring commented Nov 12, 2015

After token refresh, credential.id_token no longer matches _extract_id_token(credential.token_response['id_token']), as it does initially. access_token, token_expiry are updated, but not id_token.

E.g., https://github.com/google/oauth2client/blob/master/oauth2client/client.py#L877 doesn't quite match https://github.com/google/oauth2client/blob/master/oauth2client/client.py#L2141

@dhermes
Copy link
Contributor

dhermes commented Nov 14, 2015

I like it. We need to resolve the test issue (an issue with our config / tox) and then re-run these tests.

@dhermes dhermes mentioned this pull request Nov 15, 2015
@dhermes
Copy link
Contributor

dhermes commented Nov 17, 2015

@danring Do you mind re-basing so we can see the tests run? (I got #340 in to "fix" the tox config issue.)

@danring danring force-pushed the update_id_token_on_refresh branch 2 times, most recently from 917b6a0 to 6882be0 Compare November 18, 2015 17:28
@dhermes
Copy link
Contributor

dhermes commented Dec 14, 2015

@nathanielmanistaatgoogle WDYT?

@nathanielmanistaatgoogle
Copy link
Contributor

@dhermes: looks good; merge when you're satisfied too.

dhermes added a commit that referenced this pull request Dec 14, 2015
Avoid OAuth2Credentials id_token going out of sync after a token refresh.
@dhermes dhermes merged commit 083233e into googleapis:master Dec 14, 2015
@dhermes dhermes mentioned this pull request Jan 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants