Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine 使用Google登录:如何自定义请求的权限_Google App Engine_Authentication_Google Oauth - Fatal编程技术网

Google app engine 使用Google登录:如何自定义请求的权限

Google app engine 使用Google登录:如何自定义请求的权限,google-app-engine,authentication,google-oauth,Google App Engine,Authentication,Google Oauth,我想了解如何配置应用程序引擎应用程序以请求自定义权限。下面的示例要求“管理部署在Google App Engine上的应用程序”。他们是怎么做到的 概述: 应用程序用于登录的方法是OAuth。该框中显示的内容由范围控制 OAuth作用域的目的是访问有关经过身份验证的用户的信息。对于每个应用程序,作用域是不同的,并确定授予应用程序访问权限的用户的哪些信息 以下资源可能值得检查: 这并不是很好,但根据您的理解可能会有用 一般来说,您打算使用的每个API的文档都将包含关于哪些作用域可用和应该

我想了解如何配置应用程序引擎应用程序以请求自定义权限。下面的示例要求“管理部署在Google App Engine上的应用程序”。他们是怎么做到的

概述: 应用程序用于登录的方法是OAuth。该框中显示的内容由范围控制

OAuth作用域的目的是访问有关经过身份验证的用户的信息。对于每个应用程序,作用域是不同的,并确定授予应用程序访问权限的用户的哪些信息

以下资源可能值得检查:

这并不是很好,但根据您的理解可能会有用

一般来说,您打算使用的每个API的文档都将包含关于哪些作用域可用和应该使用的信息


详细内容: 具体地说,范围参数为

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

登录时将向用户显示类似于以下内容的提示:

+ View basic information about your account
    * View your name, public profile URL, and photo
    * View your gender and birthdate
    * View your country, language, and timezone
+ View your email address
    * View the email address associated with your account
而只有
https://www.googleapis.com/auth/userinfo.email
将显示以下内容:

+ View your email address
    * View the email address associated with your account
您可以根据需要用户提供的信息自定义作用域