Skip to content

Commit

Permalink
[middleware] Fix gcloud service account isEligible()
Browse files Browse the repository at this point in the history
  • Loading branch information
Dov committed Jun 6, 2024
1 parent b2bda19 commit 04258b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcloud/middleware/auth/gcloud_service_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (m GCloudServiceAccount) IsEligible(r *http.Request) bool {
}

if len(splitAuthHeader) > 1 {
payload, err := idtoken.Validate(r.Context(), token, "")
payload, err := idtoken.Validate(r.Context(), splitAuthHeader[1], "")
if err != nil {
// invalid token
return false
Expand Down

0 comments on commit 04258b2

Please sign in to comment.