-
Hi, I have had this doubt for some time, but until now I had overlooked it... Please, for a reference to my configuration see: #260 If I remove the JSESSIONID cookie from browser why does BFF generate a new one for me? Leaving me authenticated? To be exact it is redirected to this url: But I am actually authenticated, I can view the pages. I expected to be redirected to the Keycloak login page.. Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I don't know why the user is redirected to The most probable reason why you stay logged in is that you delete only one of the two session cookies you have: there is one from the BFF, and one from Keycloak. If you delete the cookie from the BFF, the next request from the browser to the BFF can't be bound to a valid session. With spring-addons, the default As a side note, you may find some of the subjects I can teach useful (and inexpensive, especially if you group with a few other trainees as the price is per group, not per trainee) |
Beta Was this translation helpful? Give feedback.
-
I am authenticated and the browser show the successful login url: realm: test Clear JSESSIONID and XSRF-TOKEN from browser and request same url:
The complete sequence of request and responses:
Thank you for your expertise and support, I would definitely be interested, but my English (nor French) is not so good to take a course with complex topics like Spring Security. If you organized courses on platforms like UDemy, Coursera or similar, I would definitely sign up. |
Beta Was this translation helpful? Give feedback.
-
About session and CSRF cookies conflicts, see this new entry in the README and the ability to configure the CSRF cookie since |
Beta Was this translation helpful? Give feedback.
About session and CSRF cookies conflicts, see this new entry in the README and the ability to configure the CSRF cookie since
8.1.12
(the session cookie being configurable with "standard" boot properties).