How does 1Password know which credential(s) to present to an app (not a website)?
Comments
-
Hi @btownguy
it is defined as part of their integration of the 1Password extension in their app:
https://github.com/agilebits/onepassword-app-extension
The codeblock preceeded by “Next we need to wire up the action for this button to this method in your UIViewController“ has the relevant bits.
Ben
0 -
Got it. So it is still keying off of a URL (findLoginForURLString). Thanks.
What got me thinking about this was the upcoming iOS 12 AutoFill integration (https://www.macrumors.com/guide/password-autofill-ios-12-with-1password/). Specifically, I was thinking about my Apple ID and how I can't wait to use AutoFill for Apple ID password requests on iOS. I could see someone having their Apple ID in 1Password but they might not have https://www.apple.com set as the website for their Apple ID. I was wondering how the AutoFill integration will know which credential is the Apple ID.
0 -
Got it. So it is still keying off of a URL (findLoginForURLString). Thanks.
Correct. You’re welcome. :)
Autofill works similarly. Apps have to provide a URL and login items have to have a URL that matches, otherwise you won’t get any results but can search your vault.
Ben
0