I generated an actio-token for Update- Password and went to execute it, but I got the error “Cookie not found. Please make sure cookies are enabled in your browser.”
I suppose the Keycloak container is not correctly configured.
Do you have any idea what it can be?
Thanks
If you don’t tell us exactly what you how did, we are not able to help you. 
Sorry I don’t answer early. This is my test scenario:
- Start Keycloak using TestContainer.
- Obtain an access token by executing the client credentials flow for a test client.
- For a test user, create an action_token for the
update_password action. This action should only display the “update-password” form, meaning that the action execution should exclude the “info page” at the beginning of action_token execution.
- After the action token is generated correctly, the test uses RestAssured to perform a GET request to execute the
update_password action using the previously generated action token.
- If the action token was generated to show only the “update-password” form, the test will fail, and RestAssured will return a 400 status code for the GET request result.
- If we run the same test scenario but with an action token that first shows the “info page” and then the “update_password” page upon clicking, the test will pass, and RestAssured will return a 200 status code as the result of the last step.
- I see that problem is with Keycloak’s session which cannot exist if we have an unspecific update-password action_token, but also I suppose that there is solution
Thanks
I am so grateful because you responded and asked for a detailed explanation of my problem with testing the ‘creating action token’ use case.
I have provided an answer regarding the issue in the topic.
Also , I dare to ask your advice on whether I can test a Custom browser flow (with password and 2fa authentication) with Keycloak TestContainer.
Is it generally possible ?