且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法通过iPhone应用程序中的Oauth 2.0获取google +的访问令牌

更新时间:2023-02-16 11:33:31

仅供参考-我不熟悉Objective-C,但希望对OAuth的一些了解可以帮助您解决这一问题.

FYI - I'm not familiar with Objective-C, but hopefully some knowledge of OAuth will help you figure this out.

授权的请求令牌"在OAuth 1.0中使用 OAuth 2.0中使用了授权代码"

"authorized request tokens" are used in OAuth 1.0 "authorization codes" are used in OAuth 2.0

我什么也没说OauthConsumer支持OAuth 2.0

I'm not seeing anything saying that OauthConsumer supports OAuth 2.0

您问: 我做错了什么或缺少任何参数吗?"

You asked: "am I doing anything wrong or missing any parameter?"

我认为您缺少客户端机密,这对于在OAuth 2.0中交换访问令牌的授权代码是必需的.请参阅 Google OAuth 2.0文档,以获取有关交换所需提供的更多信息.访问令牌的授权代码.

I think you are missing the client secret, which is necessary to exchange an authorization code for an access token in OAuth 2.0. See the Google OAuth 2.0 documentation for more information on what you need to provide to exchange an authorization code for an access token.

您可能想签出Mac版的Google工具箱-OAuth 2控制器:

You might want to check out the Google Toolbox for Mac - OAuth 2 Controllers:

http://code.google.com/p/gtm-oauth2/Wiki/简介