Skip to content

Commit

Permalink
Fix URL pattern for Quarkus distribution (#124)
Browse files Browse the repository at this point in the history
Closes #122
  • Loading branch information
ahus1 authored Jul 6, 2022
1 parent ea8e4f1 commit 92f0362
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class KeycloakScenarioBuilder {
.queryParam("scope", "openid profile")
.check(status.is(200),
regex("action=\"([^\"]*)\"").find.transform(_.replaceAll("&", "&")).saveAs("login-form-uri"),
regex("href=\"/auth(/realms/[^\"]*/login-actions/registration[^\"]*)\"").find.transform(_.replaceAll("&", "&")).saveAs("registration-link")))
regex("href=\"(/auth)?(/realms/[^\"]*/login-actions/registration[^\"]*)\"").find.transform(_.replaceAll("&", "&")).saveAs("registration-link")))
// if already logged in the check will fail with:
// status.find.is(200), but actually found 302
// The reason is that instead of returning the login page we are immediately redirected to the app that requested authentication
Expand Down

0 comments on commit 92f0362

Please sign in to comment.