在哪里可以找到Google OAuth 2.0 API的范围列表? [英] Where can I find a list of scopes for Google's OAuth 2.0 API?

查看:70
本文介绍了在哪里可以找到Google OAuth 2.0 API的范围列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用的示例将OAuth请求中的范围指定为: scope = https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email + https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile

The example I'm working with specifies the scope in the OAuth request as: scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile

解码为两个URI:

  • https://www.googleapis.com/auth/userinfo.email
  • https://www.googleapis.com/auth/userinfo.profile

我找不到涵盖可用范围的完整列表以及每个范围内可访问的信息的文档-有人知道这样的事情是否存在吗?

I cannot find documentation covering the complete list of scopes that are available and what information is accessible within each scope - does anyone know if such a thing exists?

推荐答案

您正在寻找的是 .

其他一些有趣的资源:

  • 一个优秀的博客 Nicolas Garnier 撰写,它描述了这项服务背后的重要内容.

  • An excellent blog by Nicolas Garnier which describes the important things behind this service.

Google OAuth2游乐场是另一个很好的信息来源.

The Google OAuth2 playground, is another good source of info.

最后,如果您有兴趣跟踪发现文档的更改或不想阅读所有文档,则可以找到有趣的

Finally if you're interested in tracking changes to the discovery documents or don't want to read all the docs, there is an interesting online implementation by Gerwin Sturm.

这篇关于在哪里可以找到Google OAuth 2.0 API的范围列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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