开发者

Authenticating into Google App Engine from an iOS device

I am working on an iPhone application that uses Google app engine to host the backend. I need to authenticate with Google but I can't seem to find a way to do it from my app. It seems I am down to making a UIWebView to have a user sign in to the redirected login page I am getting from Google, but I would much rather have the user enter there credentials one time and then have it persist, unless the user signs out.

Is this possible? Should I be looking at other options or am I just not handling the redirect correctly开发者_Go百科?

Any suggestions or info would be appreciated.

Thanks


O-Auth is available on App Engine. Just insert GTMOAuth in your projet and present the GTMOAuthViewControllerTouch. You'll be able to store the auth token in the user's keychain.

Then authorize your NSURLMutableRequests via [auth authorizeRequest:myNSURLMutableRequest]... I think it might be easier than reusing and managing cookies.


This page has pretty complete information on how to access the built-in Signin flow that is included with the generated app-engine endpoint library:

https://developers.google.com/appengine/docs/python/endpoints/consume_ios

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜