How does 1Password know which credential(s) to present to an app (not a website)?

btownguy
btownguy
Community Member

I know the link for websites is the "website". Apps are different however. How does the iOS 1Password app know which credential(s) to present when logging in to an app?


1Password Version: latest
Extension Version: latest
OS Version: latest
Sync Type: 1Password.com

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

  • btownguy
    btownguy
    Community Member

    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.

  • 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

This discussion has been closed.