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

Handling secure cookies for localhost URLs #945

Open
ahus1 opened this issue Aug 20, 2024 · 0 comments
Open

Handling secure cookies for localhost URLs #945

ahus1 opened this issue Aug 20, 2024 · 0 comments
Labels
kind/bug Something isn't working status/triage

Comments

@ahus1
Copy link
Contributor

ahus1 commented Aug 20, 2024

Describe the bug

Starting with keycloak/keycloak#16770 Keycloak changed its handling of secure cookies. While this works with browsers, it doesn't work with Gatling: gatling/gatling#4578

Version

main

Expected behavior

Gatling should work with URLs "localhost" when logging in using the UI.

Actual behavior

The authentication flow won't work with "localhost" addresses.

How to Reproduce?

Run the scenario keycloak.scenario.authentication.LoginUserPassword against a URL like http://localhost:8080

./bin/kcb.sh --scenario=keycloak.scenario.authentication.LoginUserPassword --server-url=http://localhost:8080 --realm-name=master --username=admin --user-password=admin --users-per-sec=30 --ramp-up=1 --client-id=test --client-secret=*** --client-redirect-uri=http://localhost:8080 --measurement=600 --log-http-on-failureLoginUserPassword

Anything else?

This is waiting for Gatling upstream to fix the issue. In the meantime, a safety switch is in place which will case an early failure and will show a descriptive error message.

@ahus1 ahus1 added kind/bug Something isn't working status/triage labels Aug 20, 2024
ahus1 added a commit that referenced this issue Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/triage
Projects
None yet
Development

No branches or pull requests

1 participant