jfitzell / mozilla-keychain

Store your Firefox website usernames and passwords in Apple's Keychain Services, just like Safari and other browsers do on OS X.
55 stars 9 forks source link

Store negative password entries in Keychain #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I suppose it would be nice to store the fact that we *don't* want to store 
passwords for a domain in the Keychain. Safari's approach for this seems pretty 
ugly, though, and I'm not sure if other browsers support it.

Here are the results of testing:

// Minimum required for Safari to pick up a negative entry:
KeychainServices.addInternetPassword('Passwords\xA0not\xA0saved', null,
  Security.kSecProtocolTypeHTTP, 'localhost', 0, null, null, null,
  null, null);
// Might also consider setting invisible and negative to true, though
//  neither seem to be used by anything else

// This is what Safari generates:
KeychainServices.addInternetPassword('Passwords\xA0not\xA0saved', null,
  Security.kSecProtocolTypeHTTP, 'localhost', 0, null,
  Security.kSecAuthenticationTypeHTMLForm, null, null, null);

Original issue reported on code.google.com by jfitz...@gmail.com on 5 Aug 2014 at 5:19

GoogleCodeExporter commented 9 years ago
Issue 56 has been merged into this issue.

Original comment by jfitz...@gmail.com on 5 Aug 2014 at 7:40

GoogleCodeExporter commented 9 years ago

Original comment by jfitz...@gmail.com on 5 Aug 2014 at 7:41