fix test names and sts exchange toekn request with header

This commit is contained in:
Jin Qin
2023-09-26 23:17:57 +00:00
parent b621b331ae
commit 399b52f2ff
2 changed files with 3 additions and 3 deletions

View File

@@ -255,7 +255,7 @@ func (ts tokenSource) Token() (*oauth2.Token, error) {
"userProject": conf.WorkforcePoolUserProject,
}
}
stsResp, err := sts_exchange.ExchangeToken(ts.ctx, conf.TokenURL, &stsRequest, clientAuth, nil, options)
stsResp, err := sts_exchange.ExchangeToken(ts.ctx, conf.TokenURL, &stsRequest, clientAuth, header, options)
if err != nil {
return nil, err
}