Questions tagged [sskeychain]

An open source wrapper for using the iOS keychain. Available on GitHub.

An open source wrapper for using the iOS keychain. Available on GitHub.

45 questions
120
votes
20 answers

SecItemAdd and SecItemCopyMatching returns error code -34018 (errSecMissingEntitlement)

Sometimes when I run an application on device from Xcode I would try to access the keychain but fail due to error -34018. This doesn't match any of the documented keychain error codes and can't be consistently reproduced. (happens maybe 30% of the…
Tony
  • 36,591
  • 10
  • 48
  • 83
11
votes
1 answer

Using SSkeychain to store access tokens

I'm trying to figure out how to use the SSkeychain in order to store access tokens for the instagram api. I'm currently using NSUserDefault class but I dont think thats the best of ideas. Does the SSkeychain class itself need to be allocated and…
TheM00s3
  • 3,677
  • 4
  • 31
  • 65
9
votes
1 answer

How to choose account and service values for SSKeychain

I'm thinking of using SSKeychain for storing a password in an iOS app, but I'm not sure if I need some specific value for the account and service, or if it will be OK with just arbitrary ones. Is there a common practice?
Jakob W
  • 3,347
  • 19
  • 27
8
votes
3 answers

Keychain doesn't retain the data after app gets update from iTunes

I have been using SSKeychain open source library for storing the data securely in my iOS app. Yesterday, I face an issue ,SSKeychain wasn't able to retain its data when I updated my app from v1.0 to v2.0 from iTunes. Code for UUID Generation : -…
Ajay Sharma
  • 4,509
  • 3
  • 32
  • 59
7
votes
1 answer

ios storing login token in KeyChain fails to retrieve, rarely and randomly, but consistently

I'm using the ios keychain (keychainItemWrapper / SSKeychain) to store my app's login token and maintain logged in state. Currently I store a simple NSDictionary in the keychain containing my token, a token expiry and a refresh token. I serialize…
Miro
  • 5,307
  • 2
  • 39
  • 64
7
votes
1 answer

Small percentage of users getting errSecItemNotFound when retrieving data from the Keychain

I have an iOS app that stores an access token in the Keychain. In the last few months, I've noticed that around 2% of the users get an errSecItemNotFound when trying to retrieve the token. All the relevant StackOverflow threads point to background…
mgv
  • 8,384
  • 3
  • 43
  • 47
5
votes
1 answer

How to save CFUUID in keychain

I'm developing an iPhone application. The application access some web service that aboug other things should recognize the device ID. Since UDID is deprecated, I need to call CFUUIDCreate to generate my own UUID for this purpose. The ID is…
Soonts
  • 20,079
  • 9
  • 57
  • 130
5
votes
1 answer

Can't find Keychain value when running from XCode

I'm using SSKeychain to store a session token. When I compile and run the app from XCode, sometimes the token cannot be found (seems like it works sporadically). However, if I unplug my device and run the app without XCode, the token is back, 10/10…
Daniel Larsson
  • 6,278
  • 5
  • 44
  • 82
5
votes
1 answer

iCloud Keychain notify on update

I'm using the new iCloud Keychain feature implemented by SSKeychain. I set kcQuery.synchronizationMode = SSKeychainQuerySynchronizationMode.Yes to my passwords Does iCloud Keychain now work? Will it be synchronized to my other iDevices? How long…
flashspys
  • 844
  • 9
  • 20
5
votes
0 answers

What might be causing SecItemAdd or SecItemCopyMatching to fail?

I'm using this method in order to retrieve a saved value (and using SecItemAdd to add it originally): + (NSData *)passwordDataForService:(NSString *)service account:(NSString *)account error:(NSError **)error { CFTypeRef result = NULL;…
MusiGenesis
  • 74,184
  • 40
  • 190
  • 334
4
votes
1 answer

Class SSKeychain is implemented in both framwork and appilcation iOS

My podfile: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.1' target 'xxx' do pod 'GooglePlaces' pod 'RSKImageCropper' pod 'AFNetworking', '~> 3.0' pod 'DZNEmptyDataSet' pod 'Base64', '~> 1.1.2' pod…
OuSS
  • 1,047
  • 1
  • 15
  • 23
4
votes
1 answer

Potential Loss of Keychain Access Issue After Application Move Account A To B in iOS

Our iOS app is transfer from Account A to B, Earlier we had used the certificates which was created in Account A and upload a build on iTunes Connect using certificates of Account A. Now when we uploading app on iTunesconenct for Beta Testing that…
Renish Dadhaniya
  • 10,642
  • 2
  • 31
  • 56
4
votes
0 answers

SSKeychain the authenticity of "AppName" cannot be verified

I've recently implemented SSKeychain in my application, every single time i try to access values from the keychain i get prompted to give permission to access the keychain with the message "the authenticity of "AppName" cannot be verified. Do you…
4
votes
3 answers

Tutorial on sskeychain and basic auth for iPad apps?

Where can I find a good detailed tutorial using sskeychain to store and retrieve usernames and passwords and to do basic authentication in a UIWebView? Secondarily, am I on the right track as far as the methods needed to store and use…
jjclarkson
  • 5,890
  • 6
  • 40
  • 62
3
votes
2 answers

Why does this for loop bleed memory?

I am using ARC for my iOS project and am using a library called SSKeychain to access/save items to the keychain. I expect my app to access keychain items once every 10 seconds or so (to access API security token) at peak load and as such I wanted to…
1
2 3