Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ignoring credentials in shared NSURLCredentialStorage



On May 11, 2007, at 7:24 AM, Jerry Krinock wrote:
But I find it hard to believe that the system would give your app the credential without at least one of those dialog boxes that says

     Dave's App wants access to keychain item blahblah.
     Do you want to allow access to Dave's App?
     [ ] Always allow

I never implied it didn't show the dialog. :)

The problem is, it consults Keychain *before* sending connection:didReceiveAuthenticationChallenge:. Thus if the user hits "Allow", there's no way for an app to override those credentials. And hence it seems that my app cannot use a different username and password than the one in Keychain. The only way to do this is to have the user Deny access to this Keychain item to my app.

Example: Twitteric stores passwords in the Keychain. I can no longer write my own app that accesses Twitter's API with a different username and password without having the user muck with their Keychain.

-Dave

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >Ignoring credentials in shared NSURLCredentialStorage (From: Dave Dribin <email@hidden>)
 >Re: Ignoring credentials in shared NSURLCredentialStorage (From: Jerry Krinock <email@hidden>)
 >Re: Ignoring credentials in shared NSURLCredentialStorage (From: Dave Dribin <email@hidden>)
 >Re: Ignoring credentials in shared NSURLCredentialStorage (From: Jerry Krinock <email@hidden>)
 >Re: Ignoring credentials in shared NSURLCredentialStorage (From: Dave Dribin <email@hidden>)
 >Re: Ignoring credentials in shared NSURLCredentialStorage (From: Jerry Krinock <email@hidden>)
 >Re: Ignoring credentials in shared NSURLCredentialStorage (From: Dave Dribin <email@hidden>)
 >Re: Ignoring credentials in shared NSURLCredentialStorage (From: Jerry Krinock <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.