• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Why won't Gmail cooperate with authentication delegate methods? (Gmail RSS feeds do.)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why won't Gmail cooperate with authentication delegate methods? (Gmail RSS feeds do.)


  • Subject: Why won't Gmail cooperate with authentication delegate methods? (Gmail RSS feeds do.)
  • From: "Sumner Trammell" <email@hidden>
  • Date: Wed, 13 Aug 2008 12:05:15 -0400

(I realize that this is bordering on a Google API question, but there
is some Cocoa content.)



Hi. 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

(Pages 20-21 of the URL Loading System documentation have the details.)

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?





Thanks,
-s
_______________________________________________

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

  • Follow-Ups:
    • Re: Why won't Gmail cooperate with authentication delegate methods? (Gmail RSS feeds do.)
      • From: "mm w" <email@hidden>
  • Prev by Date: Re: DICOM images in Cocoa
  • Next by Date: Re: Programmatically place cursor within NSTextField
  • Previous by thread: How to read the z-buffer in a layer-backed openGL view?
  • Next by thread: Re: Why won't Gmail cooperate with authentication delegate methods? (Gmail RSS feeds do.)
  • Index(es):
    • Date
    • Thread