Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

security-openid-connect-multi-tenancy-quickstart and security-openid-connect-web-authentication-quickstart do not work after bump to Keycloak 26 #45348

Closed
rsvoboda opened this issue Jan 3, 2025 · 4 comments
Labels

Comments

@rsvoboda
Copy link
Member

rsvoboda commented Jan 3, 2025

Describe the bug

security-openid-connect-multi-tenancy-quickstart and security-openid-connect-web-authentication-quickstart do not work after bump to Keycloak 26

I applied changes from the #44449 PR

-            TextPage textPage = loginForm.getInputByName("login").click();
+            TextPage textPage = loginForm.getButtonByName("login").click();

but those quickstarts still do not pass, cc @sberyozkin

I receive these errors:

[ERROR]   CodeFlowTest.testLogInDefaultTenant:37 » FailingHttpStatusCode 400 Bad Request for http://localhost:37851/realms/quarkus/login-actions/authenticate?session_code=cPHi0iAJHDiPNCiyV-VFA3LhjfgDebhUs6Vfp0ac9r8&execution=fea70645-8bab-43b2-a1e3-4f31eb2bf2a5&client_id=multi-tenant-client&tab_id=HB9KafV8vqE&client_data=eyJydSI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODA4MS9kZWZhdWx0IiwicnQiOiJjb2RlIiwic3QiOiJkYjA4ZjNhZS1lMjAxLTQxZDctOGM3OS0wZjA4Y2MzZjgyZTcifQ

[ERROR]   CodeFlowTest.testLogInTenantAWebApp:57 » FailingHttpStatusCode 400 Bad Request for http://localhost:37851/realms/tenant-a/login-actions/authenticate?session_code=oSE8YkufG0MmRVMNcJr4QpWVsvCDWKQDoA5_-uj1jNg&execution=451f7173-0c20-459b-9fdf-7f225a5b05cf&client_id=multi-tenant-client&tab_id=tOEUK2SXbIM&client_data=eyJydSI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODA4MS90ZW5hbnQtYSIsInJ0IjoiY29kZSIsInN0IjoiN2E3MTZkMGItMmE5Ny00MzA2LWFmNmYtODhmZjIzYmEwYzY1In0

[ERROR]   CodeFlowTest.testReAuthenticateWhenSwitchingTenants:86 » FailingHttpStatusCode 400 Bad Request for http://localhost:37851/realms/tenant-a/login-actions/authenticate?session_code=TjKjDixFJrjf1wRqhLR35r0KhI9dtFjtqpTeq796N8c&execution=451f7173-0c20-459b-9fdf-7f225a5b05cf&client_id=multi-tenant-client&tab_id=tQs5fjq0VeU&client_data=eyJydSI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODA4MS90ZW5hbnQtYSIsInJ0IjoiY29kZSIsInN0IjoiMTk4OGU2NDEtYmY5YS00OGVmLWIzNjEtMmQxMmVhN2NkMzBmIn0

Expected behavior

mvn clean verify -pl security-openid-connect-multi-tenancy-quickstart,security-openid-connect-web-authentication-quickstart is expected to PASS

Actual behavior

mvn clean verify -pl security-openid-connect-multi-tenancy-quickstart,security-openid-connect-web-authentication-quickstart FAILS

How to Reproduce?

Run mvn clean verify -pl security-openid-connect-multi-tenancy-quickstart,security-openid-connect-web-authentication-quickstart on development branch of https://github.com/quarkusio/quarkus-quickstarts

Output of uname -a or ver

macOS

Output of java -version

Java 21

Quarkus version or git rev

Quarkus main

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@rsvoboda rsvoboda added the kind/bug Something isn't working label Jan 3, 2025
Copy link

quarkus-bot bot commented Jan 3, 2025

/cc @pedroigor (keycloak), @sberyozkin (keycloak,security)

@sberyozkin
Copy link
Member

Hi @rsvoboda, thanks, as far as #45347 is concerned, would you like to do another update to the OIDC code flow doc, I realized after I merged #45347 that that doc also needs the update, I can do it a bit later as well.
FYI, I'm off next week and I may not have time to deal with fixing the quickstart today - can look at it the week starting 13th Jan...

@sberyozkin
Copy link
Member

sberyozkin commented Jan 3, 2025

@rsvoboda FYI, quarkusio/quarkus-quickstarts#1485

@rsvoboda
Copy link
Member Author

rsvoboda commented Jan 3, 2025

quarkusio/quarkus-quickstarts#1485 is merged, security-openid-connect-multi-tenancy-quickstart and security-openid-connect-web-authentication-quickstart work properly now, including native mode

@rsvoboda rsvoboda closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants