I want to configure session management and authentication using Spring Boot. In particular, when a user logs into my web application, they should be able to call my REST API to retrieve data. In addition, after a certain period of time, they should automatically log out of the system, after which any REST calls should also be interrupted. How can I accomplish this with Spring Boot?
source share