NSURLCredential and Keychain
NSURLCredential and Keychain
- Subject: NSURLCredential and Keychain
- From: Shoaib Hannani <email@hidden>
- Date: Fri, 10 Mar 2006 10:25:31 -0600
Quick Problem Description:
I'm using NSURLCredential to store credentials for a HTTP URL in
Keychain, but the Keychain item disappears after sometime.
Details:
I'm using NSURLConnection to make http calls and some of the URLs I'm
accessing require authentication.
I have the delegate method didReceiveAuthenticationChallenge:
(NSURLAuthenticationChallenge *) implemented and when it gets called,
I construct
an NSURLCredential object and set the persistence to
NSURLCredentialPersistencePermanent. I want the credentials to be
stored in Keychain and it works fine. If I close my application and
open Keychain, I can see that the credentials for the URL have been
added.
From this point on, my application automatically retrieves the
credentials everytime it needs it. But this only works for a day or
two, and then my application doesn't find the item in the Keychain
anymore. If I open Keychain, the Keychain item for my URL is nowhere
to be found. What could be removing it?
I don't have any code in my application that manipulates the Keychain
in any way, I'm only using NSURLCredential's support for Keychain.
As always, any help is greatly appreciated.
Shoaib Hannani
http://www.xheadsoftware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden