posted 6 years ago
After going through a lot of resources/blogs I finally learned how to implement a basic authentication on REST API urls. But still I am confused on how to add a login/logout in the REST Api.
All of the article, or the maximum article implement login/logout using Thymleaf or the client library inside the same project. They all use the formLogin() and logout() api of Spring Security.
So this is the authentication I learned so far, securing the URLs
Can someone please guide me on how to implement a login/logout for a REST Api. Just gives me some tips over Basic authentication, I will look for the other authentication myself. I just want a starting point.
I want to know the way I should login from my front-end application using REST Api.
Thanks