google-authenticator - 是否有 Google 身份验证器 API
问题描述
我正在尝试使用谷歌身份验证器创建一个使用双因素身份验证器的网络应用程序,所以我的问题是,是否有用于谷歌身份验证器的 api?
解决方案
有很多关于如何为 Google Authenticator 创建自己的客户端的示例,但是,您也可以使用 API,这可能更容易。
首先,您创建一个要配对的二维码,结合您的应用描述和一个密码,如下所示;
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
推荐阅读
- excel - 当用户使用powerapps和excel单击发送按钮时如何向特定人群发送文本警报消息
- spring - ApplicationListener 的类比
来自 Quarkus 的 Spring - php - 在 Laravel 中找不到对象 - Laravel
- node.js - npm start 运行时卡在终端中
- java - Hibernate - 制作谓词时避免属性名称中的字符串
- mongodb - MongoDB 指南针卡在加载屏幕上
- asp.net-core - 具有自定义用户数据库的 Blazor Asp.Net Core Identity
- nginx - 如何在同一个容器(谷歌云运行)前面的 Dockerfile 中设置一个 nginx?我尝试让 python 服务器(odoo)处理 http/2
- r - 更改栅格堆栈上的投影
- c++ - 为什么当我明确告诉 Visual Studio 2019 创建一个 .hpp 文件时,它会创建一个 .h 文件?