• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

login logout using basic authentication in spring security

 
Ranch Hand
Posts: 649
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Puspender Tanwar
Ranch Hand
Posts: 649
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any Guidance please
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic