java API for google Authenticator [closed]

瘦欲@ 提交于 2021-01-02 05:44:04

问题


I wanna add two factor authentication using Google Authenticator and was wondering if google provides with java api's. I tried searching for it but din't find any. Can anyone point me to the java api if there are any. If not how can i go about using Google Authenticator in my web based java application. I am using Spring framework for my existing application


回答1:


In fact, Google Authenticator has nothing to do with Google services. What you need to look for is TOTP. Research again using TOTP and rfc6238 as keywords and you will find lots of resources.




回答2:


Java library for google authenticator was implemented and can be found here, https://github.com/wstrange/GoogleAuth




回答3:


Sorry if this is too much of a necro-post, but I found this library on GitHub - maybe it can help you (and others looking for the same). :)

Note: this is not an official Google library, but it follows the RFC 6238 spec for Time-based One-time Password (TOTP), and the author looked at the C code for Google Authenticator for reference.



来源:https://stackoverflow.com/questions/30202867/java-api-for-google-authenticator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!