問題描述
我正在做一個 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的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!