带有 oauth 2 的谷歌 [英] Google with oauth 2
本文介绍了带有 oauth 2 的谷歌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过 oauth V2 与 google 连接
I am trying to connect with google via oauth V2
我发出http请求
https://accounts.google.com/o/oauth2/token?code=4/55Ji5pVGxrhCUB3yMu6BYdi2qARQ&redirect_uri=https%3A%2F%2Fwww.choozon.net%2Foauth2callback&client_id=408311227080.apps.googleusercontent.com&scope=https%3A%2F%2Fmail.google.com%2Fmail%2Ffeed%2Fatom&client_secret=********&grant_type=authorization_code
为什么响应是
Method Not Allowed Error 405
推荐答案
HTTP 405 表示您正在尝试使用资源不允许的动词.例如,在只读 GET
资源上使用 POST
或在仅接受 POST
的写入资源上使用 PUT
s.
HTTP 405 means that you are trying to use a verb that is not allowed by the resource. For example using a POST
on a read-only GET
resource or PUT
on a write resource that only accepts POST
s.
这篇关于带有 oauth 2 的谷歌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文