I'm using spring-lemon for my web application project. Spring-lemon uses standard form login by default, which works fine. Now, however, I need to use authentication with json request, something like this:
{"username":"spring.user", "password":"s3cret"}
How should I achieve this safely? I've searched for it, and I've seen different solutions, but I couldn't use them with success.