• 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
Re: Ignoring credentials in shared NSURLCredentialStorage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ignoring credentials in shared NSURLCredentialStorage


  • Subject: Re: Ignoring credentials in shared NSURLCredentialStorage
  • From: Dave Dribin <email@hidden>
  • Date: Fri, 11 May 2007 06:48:55 -0500

On May 11, 2007, at 1:30 AM, Jerry Krinock wrote:
Yes, that's exactly what it says. But NSURLCredentialStorage is not Keychain.

Try running this app:

-----
// gcc -o credentials credentials.m -framework Foundation
#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

NSDictionary * allCredentials =
[[NSURLCredentialStorage sharedCredentialStorage] allCredentials];
NSLog(@"All (%d) credentials: %@", [allCredentials count], allCredentials);


    [pool release];
    return 0;
}
-----

I get 114 credentials, which, I assume, it pulls out of Keychain.

Actually, just found this in the docs, too. See "Authentication and Credentials":

<http://developer.apple.com/documentation/Cocoa/Conceptual/ URLLoadingSystem/Concepts/URLOverview.html>

Note: Credentials stored in persistent storage are kept in the user's keychain and shared among all applications.

-Dave

_______________________________________________
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: Ignoring credentials in shared NSURLCredentialStorage
      • From: Jerry Krinock <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>)

  • Prev by Date: Re: Ignoring credentials in shared NSURLCredentialStorage
  • Next by Date: Re: Ignoring credentials in shared NSURLCredentialStorage
  • Previous by thread: Re: Ignoring credentials in shared NSURLCredentialStorage
  • Next by thread: Re: Ignoring credentials in shared NSURLCredentialStorage
  • Index(es):
    • Date
    • Thread