keychain

Storing and Retrieving User Credentials in Xamarin iOS

£可爱£侵袭症+ 提交于 2019-12-08 15:20:52
问题 I have a Xamarin.iOS application that requires users to log-in in order to view content. I have two text fields, one for username and one for password. Once a user has logged in and the API has returned success. how can I save the users credentials so when they launch the app they get signed in automatically? I tried this, however, I don't know how to retrieve the values or re-save credentials if user logs out void StoreKeysInKeychain(string key, string value) { var s = new SecRecord(SecKind

.NET Core - C# - MacOS | Keychain API

我的梦境 提交于 2019-12-08 08:31:35
Trying to set/get some passwords into Keychain on MacOS, using C#. Managed to add Xamarin.iOS assembly, but can't seem to go further. This is what I have, using System; using Security; using Foundation; var query = new SecRecord(SecKind.InternetPassword) { Server = "bugzilla.novell.com", Account = "miguel" }; But get an exception, which isn't that useful. I am not sure what value is null. This above example is straight from Xamarin website , but doesn't work. New to this Keychain business, so not sure what I am missing. Can someone help, please? Any help is greatly appreciated! I have also

macOS installer certificate evaluation error in Keychain: Invalid Extended Key Usage

别等时光非礼了梦想. 提交于 2019-12-08 07:56:47
问题 I generated a mac installer certificate for use with code signing and am getting an error that is preventing me from using certificate to sign installer When evaluating certificate in keychain access, I got an error: Invalid Extended Key Usage . Here is the sequence of errors when trying to evaluate an installer certificate for code signing. 回答1: I find this process works better when generating code signing keys with Xcode rather than through the Keychain access app directly. This will help

Unable to store data in Keychain Xcode 8 GM (Swift 3)

心已入冬 提交于 2019-12-08 07:33:40
问题 In my project I need to save some data in Keychain, hence I'm using some open-source, but the data is not getting stored in keychain. I have tried many open source, in every open source the attempt to store data in keychain failed. Used Keychain open sources: KeyClip - https://github.com/s-aska/KeyClip Keychain - https://github.com/marketplacer/keychain-swift keychain access - https://github.com/kishikawakatsumi/KeychainAccess 回答1: Enable KeyChain sharing in Capabilities which downloads an

Jenkins - git requests for login credentials using Git plugin

别来无恙 提交于 2019-12-08 03:56:24
问题 I have a couple of Jobs that pull code from bitbucket and build it in jenkins. I'm using Git plugin to specify the repository URL + the git credentials. Even though I set the credentials in each Job configuration, each time there is a push to bitbucket(that triggers the jenkins job), Mac is asking for "git-credential-osxkeychain wants to user the "login" keychain". If I enter the password, the job will run and it will not ask again for a couple of hours. I would like to make it permanent so

Has anyone used Buzz Andersen's Simple iPhone Keychain code?

隐身守侯 提交于 2019-12-08 01:54:56
问题 You can find it here. I'm trying to understand his sample code in order to write a simple program with that stores passwords into the keychain and retrieves them for login. Has anyone done this before? It would be most appreciated if I can see any examples you may have. 回答1: There's really no code to demonstrate, he lists both calls there. Heres's an example, for what it is worth: NSError *error; [SFHFKeychainUtils storeUsername:@"fred" andPassword:@"mypassword123" forServiceName:@"myService"

Unable to Publish from Github Desktop Application to github.com

泪湿孤枕 提交于 2019-12-07 18:36:57
问题 While trying to publish from Github desktop app to github.com am getting the following error. GitHub Desktop was unable to store the account token in the keychain. Please check you have unlocked access to the 'login' keychain. relogin didnt help. Updating Github desktop didn't help. Deleted all the entries regarding github in Keychain tool 回答1: This seems to be caused by the Keychain being in an invalid state, affecting applications that try to use the keychain to store or retrieve

creating PKCS12 at runtime on iOS without using openssl

若如初见. 提交于 2019-12-07 14:39:03
问题 My iOS app is handling x509 certificates + keys (DER encoded) at runtime. The only way I am able to successfully import them into the keychain is to use PKCS12 using the function: SecPKCS12Import() I have been trying hard to get it running using only SecItemAdd() . I used that function for the DER encoded certificate and again for the DER encoded key. But even though the call return with success, querying the keychain afterwards didn't yield a SecIdentityRef . So I ended up using the OpenSSL

Storing a .p12 certificate in keychain to use later

放肆的年华 提交于 2019-12-07 12:08:33
问题 I am trying to follow the apple docs for dealing with client p12 certificates here: https://developer.apple.com/library/ios/documentation/Security/Conceptual/CertKeyTrustProgGuide/iPhone_Tasks/iPhone_Tasks.html#//apple_ref/doc/uid/TP40001358-CH208-SW13 I have successfully loaded a .p12 cert from the file system: - (SecIdentityRef)getClientCertificate:(NSString *) certificatePath { SecIdentityRef identity = nil; NSData *PKCS12Data = [NSData dataWithContentsOfFile:certificatePath]; CFDataRef

What is the best way to secure user's data saved locally in app and how to test security level?

江枫思渺然 提交于 2019-12-07 11:12:48
问题 After the recent attack on App Store I was thinking is the security meaures implemented in app for the user data security are enough? I know there is no guaranteed way to prevent attacks to your app’s data and logic but still we can frustrate attackers by implementing some kind of security .I am looking for the answers for the following questions. is NSUserDefault is secure? is Keychain Access is secure? Which is the better approach NSUserDefault or Keychain Access or any other recommended?