如何在Google OAuth 2中获取Gmail帐户的创建日期 [英] How to get creation date of gmail account in Google OAuth 2

查看:68
本文介绍了如何在Google OAuth 2中获取Gmail帐户的创建日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究 Google OAuth 2.0 ,以获取有关通过 Google OAuth 2.0 登录的用户的信息.有很多可用的范围,例如

I am working on Google OAuth 2.0, to get information about the users logged in through Google OAuth 2.0. There is a variety of scopes available like

要获取用户基本配置文件,可以使用称为 profile 的OAuth范围,该范围在内部转换为URL https://www.googleapis.com/auth/plus.profile ,并且为了知道已登录用户的电子邮件ID,有一个称为 email 的Oauth范围,其结果为URL https://www.googleapis.com/auth/userinfo.email .

For getting the user basic profile there is OAuth scope available called profile which is internally converts to a URL https://www.googleapis.com/auth/plus.profile and for knowing the logged in user's email id there is a Oauth scope called email which results in URL https://www.googleapis.com/auth/userinfo.email.

现在我的问题是:如何获取用户的Gmail帐户的创建日期?

Now my question is: How to get the creation date of the gmail account of an user?

是否有任何OAuth范围可用于使已登录用户的gmail帐户年满?

Is there any OAuth scope available for getting how old the gmail account of logged in user?

推荐答案

根据

According to Google API People resource , It doesn't have a property to check the creation date. It might be a security risk as when user forget the password, Google asks for the registration date of account.

这篇关于如何在Google OAuth 2中获取Gmail帐户的创建日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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