Skip to content

Commit

Permalink
[java] Fix the parameters passed for credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Mar 18, 2024
1 parent 5f98528 commit ea41d96
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -39,7 +39,14 @@ public ContinueResponseParameters cookies(List<SetCookieHeader> cookieHeaders) {

public ContinueResponseParameters credentials(UsernameAndPassword credentials) {
map.put(
"credentials", Map.of("type", "password", credentials.password(), credentials.username()));
"credentials",
Map.of(
"type",
"password",
"username",
credentials.username(),
"password",
credentials.password()));
return this;
}

Expand Down

0 comments on commit ea41d96

Please sign in to comment.