Skip to content

Commit

Permalink
Use provided context for external calls (#107)
Browse files Browse the repository at this point in the history
Co-authored-by: Tommy Murphy <[email protected]>
  • Loading branch information
christopherL91 and tam7t authored May 17, 2021
1 parent 28c7126 commit 3dd8c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func tradeIDBindToken(ctx context.Context, k8sToken, idPool, idProvider string)
return nil, err
}

req, err := http.NewRequest("POST", "https://securetoken.googleapis.com/v1/identitybindingtoken", bytes.NewBuffer(body))
req, err := http.NewRequestWithContext(ctx, "POST", "https://securetoken.googleapis.com/v1/identitybindingtoken", bytes.NewBuffer(body))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 3dd8c1b

Please sign in to comment.