Error Getting Key Chain Handle
Gary Robinson
Sign in Pricing Blog Support Search GitHub This repository Watch 62 Star 219 Fork 34 auth0/SimpleKeychain Code Issues 4 Pull requests 2 Projects 0 Pulse Graphs New issue Handle Touch ID errors when retrieve data from keychain - Swift #31 Open pcsantana opened this Issue Jul 5, 2016 · 1 comment Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 1 participant pcsantana commented Jul 5, 2016 • edited Hi! I http://www.lists.apple.com/archives/macos-x-server/2004/Mar/msg01051.html have a doubt. Is there a way to handle the errors if touch ID not matching? For example, if user tap on cancel button (in touch ID dialog). Thanks! pcsantana commented Jul 6, 2016 In addition, I tried to handle the error getting NSData with the method dataForKey(key:promptMessage:error) But I get a strange error when I pass https://github.com/auth0/SimpleKeychain/issues/31 error parameter (using swift): let keychain = A0SimpleKeychain() var keychainError: NSError? // I get an error in error parameter: '&' used with non-inout argument of type '()' let passwordData = keychain.dataForKey("some_key", promptMessage: "Some message", error: &keychainError) Here the xcode suggested to delete '&'. But if I do it, the error appears: "Call can throw, but it is not marked with 'try' and the error is not handled" Any suggestion? Thank you! pcsantana changed the title from Handle Touch ID errors when retrieve data from keychain to Handle Touch ID errors when retrieve data from keychain - Swift Jul 6, 2016 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
here for a quick overview of the site Help Center Detailed answers to any questions you might http://stackoverflow.com/questions/9723949/ios-sfhfkeychainutils-failing-sometimes-with-error-25308-errsecinteractionnot have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 error getting million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up iOS SFHFKeychainUtils failing *sometimes* with error -25308 errSecInteractionNotAllowed up vote 21 down vote favorite 12 I have this code getting back a password from the keychain for a given username NSString: NSError *error = nil; NSString *appName = error getting key [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleNameKey]; NSString *pw = [SFHFKeychainUtils getPasswordForUsername:username andServiceName:appName error:&error]; if(error != nil) // log the error Most of the time for most users this all works fine - but for some specific users this call seems to fail (and carry on failing) where it returns the following error: The operation couldn’t be completed. (SFHFKeychainUtilsErrorDomain error -25308.) This is apparently errSecInteractionNotAllowed - which from what I've read I think this means some kind of user interaction is required for the keychain to be accessed. Does anyone have any idea why this call may be failing for some specific users only? This keychain entry is specific to my app - so why would any user interaction be required to access it? Any pointers much appreciated... ios keychain sfhfkeychainutils share|improve this question asked Mar 15 '12 at 16:27 Simon East 1,90011018 add a comment| 1 Answer 1 active oldest votes up vote 35 down vote accepted OK so I worked this out finally.