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协议: http://tools.ietf.org/html/rfc5849
- OAuth 2.0协议: http://tools.ietf.org/html/rfc6749
- http://oauth.net/documentation/getting-started/
- http://hueniverse.com/oauth/
- OAuth 1.0 protocol: http://tools.ietf.org/html/rfc5849
- OAuth 2.0 protocol: http://tools.ietf.org/html/rfc6749
- http://oauth.net/documentation/getting-started/
- http://hueniverse.com/oauth/
iOS上的OAuth SDK
- YToolkit(OAuth 1.0& 2.0)
- YToolkit (OAuth 1.0 & 2.0)
- Source on GitHub
- Source on Google Code
- Wiki
- Source on GitHub
- Simple document
- Demo project
- Source on GitHub
- Wiki
(说到特定网站,是否有官方或适用于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.)
- YToolkit (OAuth 1.0 & 2.0)