Re: Why won't Gmail cooperate with authentication delegate methods? (Gmail RSS feeds do.)
Re: Why won't Gmail cooperate with authentication delegate methods? (Gmail RSS feeds do.)
- Subject: Re: Why won't Gmail cooperate with authentication delegate methods? (Gmail RSS feeds do.)
- From: Derek Chesterfield <email@hidden>
- Date: Wed, 13 Aug 2008 17:55:34 +0100
On Wed, Aug 13, 2008 at 9:05 AM, Sumner Trammell
<email@hidden> wrote:
One can whip up a WebKit/Cocoa app, aim it at a Gmail URL like this:
https://www.google.com/accounts/ServiceLoginAuth?continue=http://mail.google.com/gmail&service=mail&Email=YOUR_LOGIN&Passwd=YOUR_PASSWORD&null=Sign+in
and get automatically logged into her Gmail account. Pretty cool.
Even cooler, in my opinion, is implementing this delegate method:
- (void)webView:(WebView *)aSender
resource:(id)anIdentifier
didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge
*)aChallenge
fromDataSource:(WebDataSource *)aDataSource
So now, when you aim your app at the Gmail RSS feed URL:
https://mail.google.com/mail/feed/atom
you are authenticated automatically as well.
The second case has me wishing there were a special URL for the first
case that used standard authentication. (And thus would work with
authentication delegate methods.)
I tried the obvious, https://mail.google.com/mail, and that doesn't
work. I'm still presented with the Gmail login form screen.
Does anyone know if a special URL exists for Gmail that uses standard
SSLv3 authentication like the Gmail RSS feed URL does?
Isn't this because the atom feed uses HTTP authentication, whereas
the /mail URL uses a web form? I suspect that Google deliberately do
not have a version of their webmail that uses HTTP auth. I think this
is because HTTP auth has to re-send your login credentials with each
HTTP request, and Google wanted to avoid that.
_______________________________________________
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