Reset Passwords & Activate Accounts with Spring One Time Tokens

Опубликовано: 08 Февраль 2026
на канале: kanezi
381
16

One-Time Tokens (OTT) are feature introduced in Spring Security 6.4 / Spring Boot 3.4 and provide a way to authenticate users without additional account setup.

Example demonstrates how to use the feature by implementing forgot password and activate account functionality.

In both cases we’ll send user email with temporary magic link, they can use to log in and change their password or activate their account.


GitHub:
https://github.com/kanezi/spring-one-...

00:00 - intro
00:32 - showcase application
02:28 - one time token config
03:03 - how does one time token work?
04:17 - OneTimeTokenGenerationSuccessHandler
07:17 - default one time token app showcase
07:58 - one time token flow
09:33 - debug app
12:22 - custom look and feel
22:20 - final functionality showcase