[英]Add two factor authentication to my web application
I have a java spring web application and currently it has a normal authentication flow. 我有一个java spring web应用程序,目前它有一个普通的身份验证流程。 I need to add a two factor authentication implementation to it.
我需要为它添加一个双因素身份验证实现。 For that can we use 3rd party provider like google or any other provider.
为此,我们可以使用谷歌或任何其他提供商等第三方提供商。
I need to add a two factor authentication implementation to [my java spring web application].
我需要在[my java spring web application]中添加一个双因素身份验证实现。
Here's a good package that I wrote which implements 2FA/two-factor authentication in Java code. 这是我编写的一个很好的包,它在Java代码中实现2FA /双因素身份验证。
Copying from the READ_ME, to get this to work you: 从READ_ME复制,以使您的工作:
generateBase32Secret()
to generate a secret key for a user. generateBase32Secret()
为用户生成密钥。 qrImageUrl(...)
to the user. qrImageUrl(...)
返回给用户的QR图像URL。 Whenever the user logs in: 每当用户登录时:
generateCurrentNumber(...)
. generateCurrentNumber(...)
的输出进行比较。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.