OAuth Authentication Iphone(OAuth认证iPhone)
问题描述
我正在做一个 iPhone 应用程序,它需要实施 OAuth 2.0 协议才能让用户登录到特定网站.我有在网站上注册我的应用程序后获得的客户 ID 和客户密码.我想知道一些关于这个的事情.
I am doing an iPhone app which requires OAuth 2.0 protocol to be implemented for the login of the user to a particular website. I have the client id and client secret which i got after registering my application on the website. I would like to know a few things about this.
我看到了很多关于这个的链接.但在我的脑海中,我不太确定是否需要使用 OAuth 类或 OAuth 消费者类?
I saw a number of links regarding this. But yet in my head I'm not very sure of whether i need to use OAuth classes or OAuth consumer classes?
是否可以在 OAuth 中对用户进行身份验证,而无需在查询字符串中发送用户的电子邮件 ID 和密码?
Is authentication of the user possible in OAuth without sending the email id and password of the user in a query string?
可以在 uiwebview 中加载网站并登录网站并获取用户凭据以使用更多屏幕功能.
Is is possible to load the website in a uiwebview and login to the website and get the user credentials for the further screen functionalities.
这是我正在开发的第一种此类应用程序.如果有人可以帮助我,这样我就可以清楚地知道我应该怎么做,那就太好了.
This is the first kind of such an app I'm developing. It would be great if someone could help me out so that i can know clearly how i should go about.
如果有任何使用 OAuth 实现登录网站的好教程,请分享.
if there any good tutorials for achieving Login to a website using OAuth please do share.
提前致谢
推荐答案
OAuth 规范和文档
- OAuth 1.0 协议:https://www.rfc-editor.org/rfc/rfc5849
- OAuth 2.0 协议:https://www.rfc-editor.org/rfc/rfc6749
- http://oauth.net/documentation/getting-started/李>
- http://hueniverse.com/oauth/
适用于 iOS 上 OAuth 的 SDK
- YToolkit(OAuth 1.0 和 2.0)
- GitHub 上的源代码
- Google 代码来源
- 维基
- GitHub 上的源代码
- 简单文档
- 演示项目
- GitHub 上的源代码
- 维基
(说到一个特定的网站",它有没有官方或第三方的iOS SDK?如果有,那么你不需要自己实现OAuth授权.)
(Speaking of "a particular website", does it have official or third-party SDK for iOS? If yes then you don't need to implement OAuth authorization yourself.)
这篇关于OAuth认证iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:OAuth认证iPhone
基础教程推荐
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- iOS4 创建后台定时器 2022-01-01
