我正在做一个 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 规范和文档
适用于 iOS 上 OAuth 的 SDK
(说到一个特定的网站",它有没有官方或第三方的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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!