add aws v4 signature support to go-experimental (#7326)

This commit is contained in:
William Cheng
2020-09-02 15:28:22 +08:00
committed by GitHub
parent d50d31cd5e
commit 966b87e66c
10 changed files with 46 additions and 4 deletions

View File

@@ -342,6 +342,7 @@ func (c *APIClient) prepareRequest(
if auth, ok := ctx.Value(ContextAccessToken).(string); ok {
localVarRequest.Header.Add("Authorization", "Bearer "+auth)
}
}
for header, value := range c.cfg.DefaultHeader {

View File

@@ -360,6 +360,7 @@ func (c *APIClient) prepareRequest(
if auth, ok := ctx.Value(ContextAccessToken).(string); ok {
localVarRequest.Header.Add("Authorization", "Bearer "+auth)
}
}
for header, value := range c.cfg.DefaultHeader {

View File

@@ -3,5 +3,4 @@ module github.com/GIT_USER_ID/GIT_REPO_ID
require (
github.com/antihax/optional v1.0.0
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
)