How would I go about securing a spring boot web service with spring security using java configurations and not xml? I need this to be a pseudo-RESTful service that returns a 401 response code on failed authentication and does not involve a custom login page. On a successful authentication, JSESSIONID should be returned and subsequently sent with every request.
Can someone provide a coded example of how to do this as I am completely lost? The Spring guides (for whatever reason) do not cover anything like this for spring boot secured with spring security.
THANK YOU!
Aucun commentaire:
Enregistrer un commentaire