Authentication and authorization in Spring Data REST Authentication and authorization in Spring Data REST spring spring

Authentication and authorization in Spring Data REST


The best bet for you is Spring Security. That would help you achieve authorization is much simpler manner.

Spring Security would require you an implementation that looks at request headers and performs the log-in operation programmatically.

Refer the accepted answer here.. I had followed the same and implemented the security layer in front of my rest services ( which were build using RestEasy )

RESTful Authentication via Spring

There is an alternate method as well..Referhttp://www.baeldung.com/spring-security-authentication-provider

In both cases you can disable the session creation by declaring the stateless authentication in spring security, this would help you improve the performance considerably when large volume of hits are made to the state-less REST services..