Best of Spring SecurityJanuary 2025

  1. 1
    Article
    Avatar of javarevisitedJavarevisited·1y

    JWT Authentication with Spring 6 Security

    Learn how to implement JWT authentication with Spring 6 Security using best practices. This guide walks through setting up a Spring Boot project, configuring JWT authentication, and integrating MongoDB for user data. It covers creating JWT tokens, adding security configurations, and testing endpoints. The aim is to secure a social media app with user authentication and authorization.

  2. 2
    Article
    Avatar of baeldungBaeldung·1y

    A Guide to One-Time Token Login in Spring Security

    One-time token login (OTT) in Spring Boot applications helps balance ease of use and security, ideal for infrequent logins. It simplifies authentication by sending a time-limited token via email or SMS for user login instead of traditional passwords. The tutorial covers implementing OTT with Spring Boot and Spring Security, including necessary configurations, token generation, and delivery methods, concluding with manual and automated testing guidelines.