3

I'm using oAuth2, and I have a project in my google API console with an iOS client and a Web client registered.

I'd like to auth in from my iOS app, and have my web backend retrieve an access token so it can do the heavy processing work with the Google api.

I've tried following these instructions which are for android: https://developers.google.com/accounts/docs/CrossClientAuth

But I keep getting an invalid scope when I assign the scope as:

oauth2:server:client_id:MY.WEB.CLIENT.ID:api_scope:http://www.google.com/m8/feeds/ https://mail.google.com/ https://www.googleapis.com/auth/plus.login

Anyone successfully implement a similar set up for iOS? If so please explain or share documentation? What libraries or SDKs did you use to get the code from google on the iOS app that the web backend could use to generate a proper access token of it's own?

4

1 回答 1

0

6月18日起,google iOS SDK 1.7.0支持一次性授权码,与Android功能一致:https ://developers.google.com/+/release-notes/

于 2014-07-28T21:53:40.483 回答