更新时间:2021-12-24 15:17:44
3腿Google OAuth虚拟指南.
从字面上看,您需要了解的所有信息都在此页面上 https://developers.google.com /identity/protocols/OAuth2WebServer .阅读两次,您将成为OAuth忍者.总之,它说...
Literally everything you need to know is on this single page https://developers.google.com/identity/protocols/OAuth2WebServer . Read it twice and you'll be an OAuth ninja. In summary, it says ...
client_id
标识您的应用scope
说出您要求的权限redirect_uri
告诉Google将结果重定向到用户浏览器的位置response_type=code
说您想要验证码client_id
to identify your appscope
to say what permissions you're asking forredirect_uri
to tell Google where to redirect the user's browser with the resultresponse_type=code
to say you want an Auth Code
redirect_uri
,查询参数为code
,这是一次性的身份验证代码
redirect_uri
, with a query param of code
which is the one-time Auth Code如果您访问 https://developers.google.com/oauthplayground/,则可以运行通过在线步骤,了解各种URL和响应是什么样的.
If you go to https://developers.google.com/oauthplayground/ you can run through the steps online to see what the various URLs and responses look like.