forked from Mirrors/oauth2
Fixed testing error.
Change-Id: I93775afcec60f24913ed55911b75c01bd44664b3
This commit is contained in:
parent
f9a44934e9
commit
483d2860a6
|
@ -69,7 +69,7 @@ func ExchangeToken(ctx context.Context, endpoint string, request *STSTokenExchan
|
||||||
return nil, fmt.Errorf("oauth2/google: status code %d: %s", c, string(body))
|
return nil, fmt.Errorf("oauth2/google: status code %d: %s", c, string(body))
|
||||||
}
|
}
|
||||||
var stsResp STSTokenExchangeResponse
|
var stsResp STSTokenExchangeResponse
|
||||||
json.Unmarshal(body, &stsResp)
|
err = json.Unmarshal(body, &stsResp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("oauth2/google: failed to unmarshal response body from Secure Token Server: %v", err)
|
return nil, fmt.Errorf("oauth2/google: failed to unmarshal response body from Secure Token Server: %v", err)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue