oauth2/internal
Ross Light ee2bad97a9 internal: return error if no access_token present in server response
This behavior and test was introduced in 0ae3d4edc9.
It is not consistent with the other test introduced in the same commit,
where an incorrectly typed access_token does produce an error.  Since a
*Token with a blank AccessToken is invalid, it is allowing an invalid
token to be returned without error.

Cleans up some tests responding with invalid data.

Change-Id: I777eb7a82ef598dc9042542ae65f8dce6768902e
Reviewed-on: https://go-review.googlesource.com/85659
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-01-03 00:38:26 +00:00
..
doc.go oauth2/internal: remove duplicate package documentation 2017-09-28 01:05:08 +00:00
oauth2.go internal: inline CondVal function 2018-01-02 15:01:22 +00:00
token.go internal: return error if no access_token present in server response 2018-01-03 00:38:26 +00:00
token_test.go internal: return error if no access_token present in server response 2018-01-03 00:38:26 +00:00
transport.go oauth2/internal: remove duplicate package documentation 2017-09-28 01:05:08 +00:00
transport_test.go internal: fix transport_test use of nil Context 2016-05-04 21:42:46 +00:00