google-authenticator - 是否有Google身份验证器API

标签 google-authenticator

我正在尝试使用Google身份验证器创建一个使用两因素身份验证器的网络应用程序,所以我的问题是,是否存在Google身份验证器的api?

最佳答案

关于如何为Google Authenticator创建自己的客户端的示例很多,但是,您也可以使用API​​,这可能会更容易。

首先,创建与您的应用说明配对并结合的QR码,并按如下所述创建一个 secret 代码;

https://www.authenticatorApi.com/pair.aspx?AppName=MyApp&AppInfo=John&SecretCode=12345678BXYT

然后,一旦用户配对,您就可以使用validate API调用来验证其PIN;

https://www.authenticatorApi.com/Validate.aspx?Pin=123456&SecretCode=12345678BXYT

该API的源代码可在GitHub上以开放源代码的形式获得;
https://github.com/infiniteloopltd/AuthenticatorAPI.com

关于google-authenticator - 是否有Google身份验证器API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53413527/

相关文章:

python - Python 中的 Google 身份验证器实现

asp.net - 在自己的 asp.net 项目中使用 Google Authenticator 进行两因素身份验证?

node.js - 我必须使用哪些数据才能为 Google Authenticator 生成二维码?

security - ubuntu 16.04 LTS 上的 2FA 登录

ios - 在 iOS 上自动启动 Google Authenticator 应用

php - Google 身份验证器扫描时条形码无效

authentication - Google Authenticator - 缺少 otpauth 协议(protocol)参数

token - 如何将Google Authenticator移至硬件设备?

asp.net - Google 身份验证器集成