Re: NSURLConnection and authenticating against OpenID
Re: NSURLConnection and authenticating against OpenID
- Subject: Re: NSURLConnection and authenticating against OpenID
- From: Jerry Krinock <email@hidden>
- Date: Tue, 13 Jul 2010 17:36:41 -0700
On 2010 Jul 13, at 09:40, Laurent Daudelin wrote:
> I guess everybody was sleeping yesterday when I sent this so, I'll resend :-)
Well, although that was true in my case, it's also likely that no one knows.
> I've been trying to create a NSURLCredential with the user ID and password but that doesn't seem to work.
My guess is that NSURLCredential would not be useful to you, because OpenID, as you said, does not use cookies. At the low level, you're just going to be dealing with usernames, passwords, tokens, etc. But regardless of the fancy names, they're all NSStrings or, rarely, NSData as far as you're concerned.
> I'm not sure how the OpenID works.
That's why they publish documentation...
http://openid.net/developers/
When you need to write Cocoa code to implement a standard such as OpenID, the first step is to search the internet for, in this case, "OpenID Cocoa" to see if there is any open-source code which might help. If you don't find anything (or sometimes even if you do), or if OpenID is anything like OAuth, from experience I would advise that you've got a long difficult slog ahead of you. But it can be done. You'll just repeatedly use NSURLConnection to send and receive requests as indicated in the OpenID documentation.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden