Fixed import issues and test validity.

This commit is contained in:
Patrick Jones
2020-10-19 15:17:49 -07:00
parent cde1045936
commit 520fe129d2
2 changed files with 8 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ func ExchangeToken(endpoint string, request *STSTokenExchangeRequest, authentica
data.Set("subject_token", request.SubjectToken)
data.Set("scope", strings.Join(request.Scope, " "))
authentication.InjectAuthentication(&data, &headers)
authentication.InjectAuthentication(data, headers)
req, err := http.NewRequest("POST", endpoint, strings.NewReader(data.Encode()))
if err != nil {
fmt.Errorf("oauth2/google: failed to properly build http request")