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 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:
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>)



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.