确定是否通过API为用户启用Google双因素身份验证 [英] Determine Whether Google 2-Factor Authentication is enabled for a User via API

查看:115
本文介绍了确定是否通过API为用户启用Google双因素身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个使用Google作为身份验证提供程序的应用程序,但我希望我的应用程序知道该帐户是否在帐户注册到我的应用程序之前使用两步验证。

I want to develop an application that uses Google as the authentication provider, but I want my app to know if the Google account is using 2-step verification before the account is enrolled in my app.

无法在Google dev文档中找到所需的API。

Can't find the required API in Google dev docs.

推荐答案

汇总在此解释如何查明用户是否打开了两步验证。请参阅API文档此处和参数此处

This answer here explains how to find out if users have 2-step verification turned on. See API documentation here and parameters here.

这篇关于确定是否通过API为用户启用Google双因素身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆