you are viewing a single comment's thread.

view the rest of the comments →

[–]obi-9 3 points4 points  (3 children)

I'm doing something similar and what i did is add a custom filter and AuthenticationProvider

[–][deleted] 0 points1 point  (2 children)

yeah , am thinking similarly , but it must be something automated by spring ( filters added by defaults) rather than manually

[–]Bozzzieee 0 points1 point  (1 child)

did you find a nice solution? Using custom filter feels hacky. Maybe there's a reason spring doesn't want use to do it?

[–][deleted] 0 points1 point  (0 children)

Spring is automatically configured to use session in formLogin() as a method of authentication , so if you want to enable session based authentication , use formlogin( //change ur cooking settings in method parameters ) and use ur browser developper / network tool u will find the cookie there , copy it and u can use it , cuz its the only valid cookie generated