I have a restful/json service that implements form based authentication. The default dialog box provided by spring pops up to prompt the user for username and password.
However, my
java code does not know which user it is and returns all the domain records for all the users.
How do I enhance my java code in my REST server to retrieve the session cookie from the request header and look up the user name from this cookie so I can enhance my SQL query so it only returns records for that current user?
Thanks
Siegfried