X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c6ec580a9c79d1d21cffa6454d871538ba7c14f0..60e0be49f6fa0e24349635621acb4f7d273064d9:/sdk/go/auth/auth.go diff --git a/sdk/go/auth/auth.go b/sdk/go/auth/auth.go index ca4eb948b1..730989b3a3 100644 --- a/sdk/go/auth/auth.go +++ b/sdk/go/auth/auth.go @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 + package auth import ( @@ -41,7 +45,7 @@ func (a *Credentials) LoadTokensFromHTTPRequest(r *http.Request) { // Load base64-encoded token from "Authorization: Basic ..." // header (typically used by git via credential helper) - if _, password, ok := BasicAuth(r); ok { + if _, password, ok := r.BasicAuth(); ok { a.Tokens = append(a.Tokens, password) }