Skip to content

Commit 4917444

Browse files
committed
[cdp] Use the password from the credentials when authenticating
1 parent 154cd86 commit 4917444

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

java/client/src/org/openqa/selenium/devtools/v84/V84Network.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected Command<Void> continueWithAuth(AuthRequired authRequired, UsernameAndP
8484
new AuthChallengeResponse(
8585
AuthChallengeResponse.Response.PROVIDECREDENTIALS,
8686
Optional.of(credentials.username()),
87-
Optional.ofNullable(credentials.username())));
87+
Optional.ofNullable(credentials.password())));
8888
}
8989

9090
@Override

java/client/src/org/openqa/selenium/devtools/v85/V85Network.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected Command<Void> continueWithAuth(AuthRequired authRequired, UsernameAndP
8484
new AuthChallengeResponse(
8585
AuthChallengeResponse.Response.PROVIDECREDENTIALS,
8686
Optional.of(credentials.username()),
87-
Optional.ofNullable(credentials.username())));
87+
Optional.ofNullable(credentials.password())));
8888
}
8989

9090
@Override

java/client/src/org/openqa/selenium/devtools/v86/V86Network.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected Command<Void> continueWithAuth(AuthRequired authRequired, UsernameAndP
8484
new AuthChallengeResponse(
8585
AuthChallengeResponse.Response.PROVIDECREDENTIALS,
8686
Optional.of(credentials.username()),
87-
Optional.ofNullable(credentials.username())));
87+
Optional.ofNullable(credentials.password())));
8888
}
8989

9090
@Override

java/client/src/org/openqa/selenium/devtools/v87/V87Network.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected Command<Void> continueWithAuth(AuthRequired authRequired, UsernameAndP
8484
new AuthChallengeResponse(
8585
AuthChallengeResponse.Response.PROVIDECREDENTIALS,
8686
Optional.of(credentials.username()),
87-
Optional.ofNullable(credentials.username())));
87+
Optional.ofNullable(credentials.password())));
8888
}
8989

9090
@Override

0 commit comments

Comments
 (0)