OAuth Authentication Iphone

authentication, ios, ios5, iphone, oauth-2.0

Solution

OAuth spec and documentations

- OAuth 1.0 protocol: https://www.rfc-editor.org/rfc/rfc5849

- OAuth 2.0 protocol: https://www.rfc-editor.org/rfc/rfc6749

- http://oauth.net/documentation/getting-started/

- http://hueniverse.com/oauth/

SDKs for OAuth on iOS

- YToolkit (OAuth 1.0 & 2.0)

- Source on GitHub

- OAuthConsumer (OAuth 2.0)

- Source on Google Code

- Wiki

- LROAuth2Client (OAuth 2.0)

- Source on GitHub

- Simple document

- Demo project

- MPOAuthConnection (OAuth 1.0)

- Source on GitHub

- Wiki

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

Problem

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. 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? Is authentication of the user possible in OAuth without sending the email id and password of the user in a query string? 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. EDIT: if there any good tutorials for achieving Login to a website using OAuth please do share. Thanks in advance

Original source