Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
JuCos
3 years agoOccasional Contributor
Shortcuts integration
Hello everyone!
Are you thinking of integrating support for the Shortcuts app in the iOS and macOS versions (to offer the ability to open a particular item for example).
Every day when I arrive at work I open 1Password to check my 2FA code to log into my company account. We can imagine creating automations allowing to open an item at the arrival in a particular place for example.
Can't wait to see what you're up to ;)
1Password Version: 8.7.0 (80700045)
Extension Version: Not Provided
OS Version: iOS 15.4.1
- Former Member
Thanks for the feedback JuCos.
That's an interesting use of automations. I would love to hear more ideas if anyone has them.
The scenario you describe can be built using a URL scheme. We already support a number of URL schemes, so this should already be possible.
Find the item in question in 1Password, and while viewing its details, tap the '...' menu in the upper right corner. Then tap "Copy Private Link". This will place a URL on your clipboard. When that URL is opened, 1Password will show you the item. You can paste it into the Safari address bar to test it.
Now, build your geofenced Shortcut and have it open that link when you run it.
- JuCosOccasional Contributor
Wow, I didn't know that 1Password supports URL shemes, that's a very very good news !
I'm going to test that ;) - JuCosOccasional Contributor
Well, it works but:
1. The URL first opens Safari
2. Charges xxx.1Password.com
3. Ask customer if he allows to open 1Password app
4. Need to touch “Allow”
5. Then opens the app on the wanted item…Not very fast at this time… :-/
- Former Member
That certainly is not ideal. I'll experiment and see if I find anything.
- Former Member
Here is the way to format the URL so that it opens directly in 1Password...
onepassword://view-item/i?a=account_id&v=vault_id&i=item_id
Thankfully, the account_id, vault_id, and item_id parts are filled in when you choose "Copy Private Link".
The "Copy Private Link" URL looks something like this:
https://start.1password.com/open/i?a=TAHGR7OUSNTUOU97&v=km7bssnth36dhnqy4353u&i=cgfsneothuoeu24q
Change the first part from
https://start.1password.com/open
toonepassword://view-item
.That should open the item directly in 1Password without going through Safari first.
- JuCosOccasional Contributor
😍
- JuCosOccasional Contributor
Great, thank you very much, it works really well!
To go even further: do you know if it is possible, via an URL scheme, to access directly to one of the elements?
The idea would be to ask for the "one-time password" item on this log, and display the result in a notification (with the "display result" action of the Shortcuts app) - Former Member
I'm happy that works. Unfortunately, there is no URL scheme for accessing individual elements. That sort of thing can be done on the desktop or on a server using the command line interface (https://developer.1password.com/docs/cli/), but not on mobile.
- cortigOccasional Contributor
@chadseld
We already support a number of URL schemes, so this should already be possible.
Now… if only that could be re-implemented as well in 1Password for Mac…………………
;-)Corentin
- 1P_Ben
1Password Team