• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

login logout using basic authentication in spring security

 
Ranch Hand
Posts: 654
2
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 654
2
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any Guidance please
 
Stop it! You're embarassing me! And you are embarrassing this tiny ad!
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic