commit | cc2494a288f7645968af9c7293faf02e6371a377 | [log] [tgz] |
---|---|---|
author | Jim Cote <jfcote87@gmail.com> | Thu Feb 05 14:58:01 2015 -0500 |
committer | Andrew Gerrand <adg@golang.org> | Sat Feb 07 21:11:15 2015 +0000 |
tree | 7be57a1de0fd6c64a4f0e028a14f120f6f428760 | |
parent | 6f28996586216f4539154b9c03e87c4b6bfe4338 [diff] |
oauth2: fixes tokenRefresher.Token() ignores new refresh_token Fixes bug documented in Issue #84 (https://github.com/golang/oauth2/issues/84#issuecomment-72711375). During a refresh request, a new refresh token MAY be returned by the authorization server. When this occurs, tokenRefesher.Token() fails to capture the new refresh token leaving it with an invalid refresh token for future calls. Change-Id: I33b18fdbb750549174865f75eddf85b9725cf281 Reviewed-on: https://go-review.googlesource.com/4151 Reviewed-by: Andrew Gerrand <adg@golang.org>