Sla*_*mir 20 oauth google-api google-plus google-oauth google-oauth2
我们的一些用户通过Google OAuth API进行身份验证(https://developers.google.com/+/web/api/rest/oauth)
除了2019年4月之后,Google版OAuth API的未来是什么?
除了OAuth之外,我们使用以下端点获取用户的电子邮件和名称:https://www.googleapis.com/plus/v1/people/me一旦我们获得访问令牌.该端点是否已过时?
Joh*_*ley 17
更新12/21/18
[结束更新]
OAuth 2.0是Google帐户提供的服务.Google+结束时不会影响OAuth 2.0.
OAuth 2.0是Google Cloud Platform,G Suite和许多其他服务的基础身份验证服务.OAuth 2.0基于令牌,这些令牌可用于各种服务,包括基于Google和第三方.
下面在关于端点的评论部分中提出了另一个问题.
用户信息的Google+端点:googleapis.com/plus/v1/people/me可能会持续存在多年(等待Google正式发布).
我将开始使用Google OAuth 2.0端点(请注意alt = json):https://www.googleapis.com/oauth2/v3/userinfo ? alt = json
返回的Json看起来像这样:
{
"id": "123456789012345678901",
"email": "username@example.com",
"verified_email": true,
"name": "User Name",
"given_name": "User",
"family_name": "Name",
"link": "https://plus.google.com/123456789012345678901",
"picture": "https://lh3.googleusercontent.com/.../mo/photo.jpg",
"locale": "en",
"hd": "example.com"
}
Run Code Online (Sandbox Code Playgroud)
Google OAuth 2.0端点的当前列表:
https://accounts.google.com/.well-known/openid-configuration
| 归档时间: |
|
| 查看次数: |
5289 次 |
| 最近记录: |