从iOS设备验证到Google App Engine

编程入门 行业动态 更新时间:2024-10-27 18:31:54
本文介绍了从iOS设备验证到Google App Engine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在研究使用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

本文发布于:2023-10-12 00:24:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1483262.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:设备   iOS   Google   Engine   App

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!