OAuth身份验证Iphone [英] OAuth Authentication Iphone

查看:128
本文介绍了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.


  1. 我看到了很多关于此的链接。但是在我脑海中,我不确定是否需要使用OAuth类或OAuth使用者类?

  1. 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 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.)

      这篇关于OAuth身份验证Iphone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆