MacPass icon indicating copy to clipboard operation
MacPass copied to clipboard

Support ASCredentialIdentityStore?

Open NattyNarwhal opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. At least of 11.x, apps like Safari seem to be able to poke password providers like Keychain for filling in passwords. KeePass apps on iOS seem to implement this API, and it's pretty nice being able to grab a password without having to switch apps. I believe it also provides hints for the password manager so it can suggest the right password.

Describe the solution you'd like Implementing the API would seemingly allow the OS to open MacPass. Due to the suggestion it's related to QuickType, it may be useful on a touch bar Mac, but I don't have one.

Describe alternatives you've considered For the Safari case, extensions would no longer be needed.

Additional context It was suggested under this comment, but raising out to a separate issue is better for visibility.

NattyNarwhal avatar Aug 17 '21 13:08 NattyNarwhal

This is called AutoFill Credential Provider.

What you want to implement is ASCredentialProviderViewController, a view controller that a password manager app uses to extend Password AutoFill.

https://developer.apple.com/documentation/authenticationservices/ascredentialproviderviewcontroller

The ASCredentialIdentityStore is a container that your extension fills to provide credentials through the QuickType bar.

The feature and implementation is demoed in this vid: https://developer.apple.com/videos/play/wwdc2018/721/

More info https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_authentication-services_autofill-credential-provider

gagarine avatar Jul 23 '22 13:07 gagarine

Seems this might also be useful for implementing passkeys, if KeePass can support that?

NattyNarwhal avatar Jun 13 '23 02:06 NattyNarwhal