I have a REST API running under Spring 4 using basic authentication. These REST services are located under the / api / v 1 / ** URL. However, I want to add another set of REST endpoints under different url / api / v2 / **, but it is protected by token-based authentication.
Is it possible to do this with a single servlet? How to configure Spring Security to use different forms of authentication for different URLs?
Thanks.
user1930502
source
share