• 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
Intermittent NSURLCredential lookup failure on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Intermittent NSURLCredential lookup failure on iOS


  • Subject: Intermittent NSURLCredential lookup failure on iOS
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 05 Apr 2013 10:38:46 -0700

A couple of users of my iOS library (TouchDB) are reporting transient HTTP auth problems, where after a long series of NSURLConnections to a remote server using Basic auth, one of the connections will suddenly fail with a 401 error, even though nothing related to credentials has changed on the client or server.

I haven’t been able to reproduce it myself, but from looking at detailed logs what seems to happen is that the credential lookup intermittently fails — the NSURLCredentialStore does return an NSURLCredential, but its .password property is nil. This even though a prior lookup of the same credential less than a second ago succeeded.

The credential’s been stored persistently, i.e. in the app’s keychain. Is there any known issue in iOS where URL credential lookup might intermittently fail?

(I’m posting a copy of this message to apple-cdsa too, since it seems equally relevant to both lists.)

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Intermittent NSURLCredential lookup failure on iOS
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Next by Date: When does NSURLConnection proactively send authorization?
  • Next by thread: Re: Intermittent NSURLCredential lookup failure on iOS
  • Index(es):
    • Date
    • Thread