Passkeys in iCloud Keychain

RSS for tag

Use public-key-based credentials using the WebAuthn standard that are synced with iCloud Keychain.

Posts under Passkeys in iCloud Keychain tag

9 results found
Sort by:
Post not yet marked as solved
20 Views

Integrate Passkey iCloud Keychain with other smartphone-based FIDO authenticator

Hi Developers, I am wondering how is it possible for other smartphone-based FIDO authenticators to use the same iCloud Keychain storage as Passkey does so those credentials can be used on non-apple devices too, and also on the smartphone at the same time. There are some other iOS authenticators that have implemented BLE and are working on all devices including Windows, but the problem is that those apps cannot support signing in to the website on the smartphone itself (neither in apps nor inside the browser) using the previously registered credential of 'cross-platform' type.
Asked
by sansei.
Last updated
.
Post not yet marked as solved
93 Views

Keychain stored information are missing randomly when app goes in background for some time

Hello, some of our users are facing a problem after the update on iOS 15. The app stores some sensitive information in keychain. Everything works properly when app is in foreground and moreover when the user is active with this across a short time frame. However they complain that after some time (random time) that app is in background and they return to it, it has lost the keychain items and the app asks for a new registration. Moreover we don’t do anything before didFinishLaunching. We also tried some other approaches that are proposed to some other threads in order to move some code that is related with user defaults or keychain in applicationProtectedDataDidBecomeAvailable but the issue wasn’t fixed. The app in prior to iOS 15 versions works as expected without any problems. Is there anything else that we can do? Thank you in advance.
Asked
by hoya2121.
Last updated
.
Post not yet marked as solved
76 Views

iOS 15 Keychain Storage is clearing when app is in background for some time

Hey! This is my first question on the developer forums so please bare with me incase I'm doing something wrong. To cut to the chase, my team recently updated their iOS devices to iOS 15 and we've encountered a strange issue. If our app is left backgrounded for a while (couple of hours), KeychainStorage is clearing out the stored values. We've confirmed this only happens on iOS 15+ devices since users with iOS 14 are not facing any issues. We are storing the access token/refresh token of the user in Keychain and basically, if the user doesn't open the app for a while, they automatically get logged out (definitely not a nice UX). I've checked online, and many people were suggesting that Keychain data requires time to be decrypted but I made sure I'm not accessing the data prior to the decryption. Also, I made sure that nothing is called before didFinishLaunchingWithOptions. Our kSecAttrAccessible is set to kSecAttrAccessibleWhenUnlockedThisDeviceOnly if that's of any use. I've seen other posts regarding this issue but all other cases seemed to be resolved by waiting for a notification that data became available, again, I'm not facing that problem. If any more info is required, please let me know and I'll be sure to reply ASAP.
Asked
by ch1ha.
Last updated
.
Post not yet marked as solved
193 Views

iOS 15 keychain data retrieve issue

After upgrading to iOS 15, when I open the app after a couple of hours, we are not able to retrieve keychain data in didFinishLaunchingWithOptions delegate method. For each new launch we are facing the same issue of of not retrieving keychain data. We need to relogin to process further in the application. But for iOS 14 and below we are not facing this issue, we are able to retrieve the keychain data in didFinishLaunchingWithOptions delegate. Is anyone facing the same issue in their application?
Asked Last updated
.
Post not yet marked as solved
162 Views

NSUbiquitousKeyValueStore crashed only in iOS 15

The call stack is followed: Incident Identifier: 5DBD18B5-29DD-48E1-8BE5-A648BD4E8CE3 CrashReporter Key: 4006fd6d63831c08be5068429b9892f633d41735 Hardware Model: iPhone12,5 Process: *** Path: /private/var/containers/Bundle/Application/FD114B6F-9C45-4546-9924-082A2CF546B8/***.app/*** Identifier: com.***.*** Version: 2.0.0 (2.0.0.3) AppStoreTools: 13A227 AppVariant: 1:iPhone12,5:13 Code Type: ARM-64 (Native) Role: Unspecified Parent Process: launchd [1] Coalition: com.***.*** [2761] Date/Time: 2021-09-28 14:24:03.8329 +0800 Launch Time: 2021-09-28 14:24:03.5890 +0800 OS Version: iPhone OS 15.0 (19A346) Release Type: User Baseband Version: 3.00.00 Report Version: 104 Exception Type: EXC_GUARD Exception Subtype: GUARD_TYPE_USER Exception Message: namespc 18 reason_code 0x0000000000000002 Exception Codes: 0x6000000000000012, 0x0000000000000002 Exception Note: SIMULATED (this is NOT a crash) Termination Reason: LIBSYSTEM; [2] Thread 3: Crashed 0 libsystem_kernel.dylib 0x1b80a2ae8 os_fault_with_payload + 7382641384 ((null)) 1 libsystem_trace.dylib 0x000000019bd941b4 _os_log_impl_flatten_and_send + 6909673908 ((null)) 2 libsystem_trace.dylib 0x000000019bd90b70 _os_log + 6909660016 ((null)) 3 libsystem_trace.dylib 0x000000019bd98cac _os_log_fault_impl + 6909693100 ((null)) 4 SyncedDefaults 0x1ad034c90 -[SYDRemotePreferencesSource initWithApplicationID:storeID:shared:additionalSource:containerPath:storeType:].cold.1 + 52 5 SyncedDefaults 0x1ad027210 -[SYDRemotePreferencesSource initWithApplicationID:storeID:shared:additionalSource:containerPath:storeType:] + 1400 6 Foundation 0x182ff5d58 -[NSUbiquitousKeyValueStore initWithBundleIdentifier:storeIdentifier:additionalStore:storeType:] + 348 7 Foundation 0x182fd8e84 __41+[NSUbiquitousKeyValueStore defaultStore]_block_invoke + 24 8 libdispatch.dylib 0x000000018140194c _dispatch_client_callout + 6463428940 ((null)) 9 libdispatch.dylib 0x00000001814031d4 _dispatch_once_callout + 6463435220 ((null)) 10 Foundation 0x182fe0668 +[NSUbiquitousKeyValueStore defaultStore] + 64 ... // omit insignificant call stack of the app 14 libdispatch.dylib 0x00000001813ffc00 _dispatch_call_block_and_release + 6463421440 ((null)) 15 libdispatch.dylib 0x000000018140194c _dispatch_client_callout + 6463428940 ((null)) 16 libdispatch.dylib 0x0000000181413064 _dispatch_root_queue_drain + 6463500388 ((null)) 17 libdispatch.dylib 0x0000000181413764 _dispatch_worker_thread2 + 6463502180 ((null)) 18 libsystem_pthread.dylib 0x00000001f12c5170 _pthread_wqthread + 8341180784 ((null)) 19 libsystem_pthread.dylib 0x00000001f12c4f4c start_wqthread + 8341180236 ((null)) What's mean the Exception Note: SIMULATED (this is NOT a crash)? It's not a crash? And then, is it possible a bug in iOS 15?because no crash reports before iOS 15. Thanks.
Asked
by KiBen.
Last updated
.
Post not yet marked as solved
1.4k Views

iOS 15 beta wipes out app data

When I open the app after a couple of hours, all of. the app data is getting wiped out (UserDefaults, keychain password). I'm on iOS 15 public beta 3. Has anyone faced similar issue, or how to debug and get it fixed?
Asked Last updated
.
Post not yet marked as solved
240 Views

ios 15 platform webauthn

Hi Apple Developer: I'm having some problems with iOS15 WebAuthn. Can't found parameter for excludeList at the time of registration.Can‘t found parameter for allowList at the time of authentication. When I use an external authenticator, the registration succeeds, but the authentication prompts that no credentials are available. Related to the interface: ASAuthorizationSecurityKeyPublicKeyCredentialProvider; ASAuthorizationPlatformPublicKeyCredentialRegistration; Best regards;
Asked
by iceboy.
Last updated
.
Post not yet marked as solved
368 Views

Unable to complete associated domain check

Hi, When attempting to perform a credential registration, I constantly get the error Application with identifier <...> is not associated with domain <domain> I've verified the following: The file is present on the required URL path https://123.com/.well-known/apple-app-site-association { "webcredentials": { "apps": [ "<PREFIX>.bundleID" ] } } Added the Capabilities to my domain Confirmed that the CA is valid and there are no redirects. Am I missing something? My device is able to properly access the file
Asked Last updated
.
Post not yet marked as solved
198 Views

iCloud Keychain

Hi, How do I save to the iCloud Keychain from my app? I can't seem to find anything anywhere that isn't the equivalent of UserDefaults.
Asked
by Mcrich23.
Last updated
.