Skip to content

Commit 48a2129

Browse files
committed
if digest auth passed, skip basic auth check
Change-Id: If0287548bdb9fa9ca7685f1f7f09653b68f22da5
1 parent 67c6781 commit 48a2129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocol/http/handshake.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func HandleConnectionEx(
5050
ctx = auth.ContextWithUser(ctx, username)
5151
}
5252
}
53-
if strings.HasPrefix(authorization, "Basic ") {
53+
if !authOk && strings.HasPrefix(authorization, "Basic ") {
5454
userPassword, _ := base64.URLEncoding.DecodeString(authorization[6:])
5555
userPswdArr := strings.SplitN(string(userPassword), ":", 2)
5656
if len(userPswdArr) == 2 {

0 commit comments

Comments
 (0)