Is it possible to access saved passwords that a user has submitted in Safari from the iOS keychain?
https://developer.apple.com/documentation/security/keychain_services
I would like to use it to perform an autocomplete on certain fields.
Is it possible to access saved passwords that a user has submitted in Safari from the iOS keychain?
https://developer.apple.com/documentation/security/keychain_services
I would like to use it to perform an autocomplete on certain fields.
No, it is not possible.
App could have access only to its own keychain and for shared between your other apps keychains.
This is now possible in iOS 8.
This was introduced at WWDC 2014 in a session called "Your App, Your Website, and Safari"
Or, see this post on how to do this in Swift.
In short, the web domain SSL certificate has to be certified by your iOS app (which must have the associated-domains
capability). When the two credentials match, you can use SecRequestSharedWebCredential
to retrieve existing username/password pairs, or SecAddSharedWebCredential
to add new ones or update existing ones.
Edit: Apple has released documentation on how to do this in Objective-C or Swift here
No, it is not possible.
App could have access only to its own keychain and for shared between your other apps keychains.
See WWDC 2017 session to know more about Password AutoFill for Apps. If you have logged in earlier through Safari and saved your password and the same password if you wish to use in your app, you click on password textfield. This action will wake a keyboard which will show key symbol. This signifies to you password as an autofill from list of passwords saved in keychain through safari. So click on key symbol, after authentication you will get to view all your saved passwords in Autofill Password List.
Note: Before moving to Autofill Password List you have to authenticate your phone by local authentication using your saved touchID.
© 2022 - 2024 — McMap. All rights reserved.