Skip to content

Commit 2baff07

Browse files
committed
- make load test work with Keycloak 26
1 parent a0f2b01 commit 2baff07

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/k6-tdk/src/auth/keycloak.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class Keycloak implements AuthNHTTPProvider {
100100

101101
let loginPageResponse = http.get(`${this.endpoints.login}?${objectToQueryString(loginParams)}`, {
102102
jar: this.jar,
103-
redirects: 0
103+
redirects: 2
104104
})
105105

106106
check({ val: loginPageResponse }, {
@@ -134,7 +134,7 @@ export class Keycloak implements AuthNHTTPProvider {
134134
const authorizationResponse = loginPageResponse.submitForm({
135135
formSelector: '#kc-form-login',
136136
fields: { username: this.userLogin, password: this.userPassword },
137-
params: { redirects: this.socialProviderRealm ? 1 : 0, jar: this.jar }
137+
params: { redirects: 1, jar: this.jar }
138138
})
139139

140140
check({ val: authorizationResponse }, {

0 commit comments

Comments
 (0)