我如何在Spring Security中实现OTP 2因素认证。首先,DB用户名和密码身份验证并基于用户角色重定向到OTP身份验证?
您可以考虑使用这样的插件:
https://github.com/upcrob/spring-security-otp
它已经有一段时间没有更新了,但至少可以为您提供一个很好的起点。