keychain

adding prefix to your current bundle id resets the keychain?

会有一股神秘感。 提交于 2020-01-05 02:51:08
问题 I have an app(app1) which is in appstore with bundle id com.x. y Now i was developing another app(app2) under same developer account with bundle id com.x. z I wanted to make the keychain value stored in app1 available to app2. This availablity of keychain is determined by keychain-access-groups. so if i add prefix( current Team id) to both the bundle id i am able to get the values. example teamid .com.x.y teamid .com.x.z Issue is When i add the prefix to app1 which is in appstore, it ask for

Error acessing keychain item from OS X authorization plugin

白昼怎懂夜的黑 提交于 2020-01-04 10:22:21
问题 I'm using the NameAndPassword authorization plugin to login through the OS X lock screen (the fixed version of the plugin since original is broken). I need it to be able to access stored passwords somehow, and currently I'm trying to achieve this by using keychains. I managed to create the keychain and save some password inside, along with the ACL needed to access the password without prompting the user. Any application added to the ACL works fine with no prompts, but when I try to access the

Error acessing keychain item from OS X authorization plugin

 ̄綄美尐妖づ 提交于 2020-01-04 10:18:46
问题 I'm using the NameAndPassword authorization plugin to login through the OS X lock screen (the fixed version of the plugin since original is broken). I need it to be able to access stored passwords somehow, and currently I'm trying to achieve this by using keychains. I managed to create the keychain and save some password inside, along with the ACL needed to access the password without prompting the user. Any application added to the ACL works fine with no prompts, but when I try to access the

Google plus sign-in for xcode share extension

谁说我不能喝 提交于 2020-01-02 07:05:17
问题 I’m writing an iOS app to share web page links by email, and as part of it I want users to be able to sign in to google plus. I’ve got the containing app working fine using the instructions from here: https://developers.google.com/+/mobile/ios/sign-in and now I’m trying to add a share extension that can also access the user’s google+ profile. I started off by trying to add the sign in button in to the share extension, but I don’t think that’s going to work because after clicking the button

iOS Distribution: Migrating private key/certs to new machine

大兔子大兔子 提交于 2020-01-02 05:28:07
问题 I need to be able to submit updates to my application from a different machine than the one I used to submit the original. I followed the instructions in the documentation, but, as usual, the documentation assumes everything works right the first time. I tried exporting my developer profile from the old one to the new one, but when I submitted, App Loader said it was invalid signature. So I tried to generate new certs (in order to do this in the Provisioning Portal, you have to revoke the

which key should I use to store the password in iOS keychain?

为君一笑 提交于 2020-01-01 09:50:09
问题 The KeychainItemWrapper class in the Apple GenericKeychain sample use kSecValueData key to store password. But the reference http://developer.apple.com/library/ios/#documentation/Security/Reference/keychainservices/Reference/reference.html#//apple_ref/doc/uid/TP30000898 says kSecValueData is used in the results dictionary for SecItemCopyMatching or SecItemAdd, indicating the type of values returned. which key should I use when I call SecItemAdd to create a keychain item? 回答1: You should use

How do I use Apple Keychain?

只愿长相守 提交于 2020-01-01 07:45:13
问题 I am using trying to use scifihifi-iphone (from Github) to store and retrieve usernames and passwords. However, when I add the class SFHFKeychainUtils I get the following errors: "_kSecAttrAccount", referenced from: _kSecAttrAccount$non_lazy_ptr in SFHFKeychainUtils.o "_SecItemDelete", referenced from: +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o "_kSecReturnAttributes", referenced from: _kSecReturnAttributes$non_lazy_ptr in SFHFKeychainUtils.o "

iOS keychain: SecItemUpdate returns -50 (paramErr) when updating kSecAttrAccessible

帅比萌擦擦* 提交于 2020-01-01 05:49:46
问题 I need to update the kSecAttrAccessible of a keychain entry. I don't need to update the actual data, just the accessibility attribute. First I try to find the item to make sure that my query dictionary is good: sanityCheck = SecItemCopyMatching((__bridge CFDictionaryRef)(queryPrivateKey), (void *)&privateKeyRef); This line successfully finds me the item I am looking for (return code is 0). I then update the kSecAttrAccessible attribute using the same query: if (sanityCheck == noErr &&

Storing keys in KeyChain with KeyChainItemWrapper

血红的双手。 提交于 2020-01-01 02:28:49
问题 I'm using KeyChainItemWrapper class, provided by Apple's Sample Code to save the authentication token to the keychain. KeychainItemWrapper *keychain = [[KeychainItemWrapper alloc] initWithIdentifier"JetTaxiApp_AuthToken" accessGroup:nil]; But when I'm trying to set the value to keychain, an odd exception is raised [_authenticationTokenKeychain setObject:authenticationToken forKey: @"auth_token"]; Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Couldn't

Saving in KeyChainItemWrapper crashes for password

南笙酒味 提交于 2019-12-31 10:39:44
问题 Apple has provided KeyChainItemWrapper class in their GenericKeyChain sample code. There is an ARC'ed solution here on SO, which I am trying to follow: wrapper to store in the KeyChain on iOS. The usage of the wrapper is like this: KeychainItemWrapper *keychain = [[KeychainItemWrapper alloc] initWithIdentifier:@"F11-email-auth" accessGroup:nil]; [keychain setObject:[emailTextfield text] forKey:(__bridge id)(kSecMatchEmailAddressIfPresent)]; [keychain setObject:[passwordTextfield text] forKey: