从iOS设备验证到Google App Engine [英] Authenticating into Google App Engine from an iOS device
问题描述
我正在研究使用Google应用引擎托管后端的iPhone应用。我需要通过Google进行身份验证,但似乎无法从我的应用中找到方法。看来我正在做一个 UIWebView
让用户登录到我从Google获得的重定向登录页面,但我宁愿让用户输入凭据一次,然后让它坚持下去,除非用户注销。
这可能吗?我应该看看其他选项还是我没有正确处理重定向?
任何建议或信息将不胜感激。
谢谢
O-Auth
在App Engine上可用。
只需在您的项目中插入 GTMOAuth ,并将 GTMOAuthViewControllerTouch
。您可以将授权令牌存储在用户的钥匙串中。
NSURLMutableRequests
c $ c> [auth authorizeRequest:myNSURLMutableRequest] ... 我认为这可能比重复使用和管理cookies更简单。
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?
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.
这篇关于从iOS设备验证到Google App Engine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!