1Password and Safari, KM's 1Password Bookmark Action Not Working

I thank you for pointing this out to me, I completely missed it!

That said, I do have a problem. I added it to my macro but I cannot change the Open 1Pasword Bookmark to specify the forum. Any ideas?

Thanks.

For me, the fastest way to log in to websites with 1Password is to call up the corresponding login in 1Password Mini.

2021_12_13_Support_2

So you mean you can't pull up this dropdown?

Two questions. First, are you using 1Password 7, or the 1Password 8 beta? Second, if you're using 7, do you have this setting turned on in 1Password's Advances preferences?

I am using 1Password 8 beta.

Try to tell people such things at the outset – particularly if different from the norm.

:sunglasses:

Apologies, my bad!

Is that why I cannot get the action to work?

Could be. I'm using 1Password 7.9.1 on Mojave, so I can't test.

But this sort of information is often vital to sussing out problems.

Lesson learned! Wont happen again, thank you!

Yes, it is. The 1Password 8 betas removed (or, more accurately, don't yet include) the third party integration that lets KM and other apps like Alfred access its bookmarks natively. While it's apparently coming soon, hopefully before its public release, we unfortunately can't use this KM action in the meantime.

1 Like

Appreciate the response and good to know, thank you!

1 Like

Hey Joel,

No worries.

Just keep in mind that any “unusual” variation may affect solving a problem.

It's always a good idea to provide the following if possible:

  • Version of macOS
  • Version of Keyboard Maestro
    • Especially if different than the current.
      • Keeping in mind that a year from now the current version will be different, and people may be reading and using your old posts.
  • The name of the app you're working in if relevant.
    • A link to it if it's not commonplace.
  • Post a simple as possible “working” test-case macro, and an image of same (when relevant).

When posting macros to the Keyboard Maestro forum please use these guidelines:

  1. Always post a Macro File.
  2. Always post an image.

This means people won't have to reinvent the wheel to test your macro, and that significantly improves the likelihood that someone will help you.

Folks generally won't download something they haven't eyeballed first, so an image of the macro is crucial.

Keep in mind that the easier you make it for people to help you the more likely you'll get timely and useful assistance.


If you haven't seen these they're worth a moment of your time:

How to Post Your Macro to the Forum

Tip: How Do I Get The Best Answer in the Shortest Time?


--
Take Care,
Chris

(Keyboard Maestro Moderator)

@ccstone, I will follow the above to the letter!

Thank you for sharing!

1 Like

Some good news: It looks like there's a workaround to open specific websites and have 1Password 8 fill in the credentials with KM after all. Apparently, when you open and fill a bookmark in 1Password, it opens the website's URL with the login information (securely) embedded in the URL itself. We can then copy this URL and use it in a KM Open a URL action. For example, if I open and fill my 1Password entry for this forum, a new tab is opened with a URL that looks a lot like this (not the actual URL for security purposes, but close enough for a demonstration):

https://forum.keyboardmaestro.com/?ewecktv2m5okh2u3rleasfzd62uxvq=bv72efawcvdrlasdfdr7dektgtcnzi

You can then copy that URL from the address bar and paste it into an Open URL action:

and it should function the same as the Open 1Password Bookmark action.

1 Like

@gglick , I want to make sure I understand. Are you saying that the URL contains the login credentials as well? And, if not, then I don’t understand the benefit.

Thank your.

No, the URLs don't contain the login credentials at all. If you look at the example URL I showed for this forum, my username was nowhere to be seen, and I can assure you my password isn't in there either. I don't profess to know how it works, but somehow these URLs work to both open the site and have 1Password fill in your credentials the same way 1Password already works. Unless I'm misunderstanding your use case, I believe this is what you want. I suggest giving it a try, perhaps with a more innocuous/mission non-critical website at first, and see for yourself how it works.

@gglick appreciate that.

Do what you are saying, open 1Password, find the bookmark for the website you want, press open and fill, boot the URL (I have no idea how to do that but let’s say someone helps with that) and then past that URL into Safari and it will open the website.

If that is correct then:

  1. I understand why this works. In 1Password, the Paste and Fill does just what u you say, it open the URL in Safari and fills in the credentials.

  2. How does one do the first party, copy the Paste and Fill URL from 1Password?

Thx!

Apologies if I wasn't clear. The steps to get a credential-filling URL from 1Password are:

  1. Open and fill a bookmark from 1Password (full, mini, quick access, doesn't matter)

  2. Wait for the bookmark to be opened in Safari

  3. Copy the URL from the newly opened Safari tab

  4. Paste the URL into a KM Open URL action

Once you've done that, you'll have a KM action that will do the same thing as opening and filling a bookmark from 1Password. No need to paste any URLs into Safari; all you'll need to do is copy the URL 1Password used from Safari once, to use in the KM action.

@gglick, I think you for the explanation that said, a few things:

  1. I understand your steps perfectly but how does one copy the URL from the newly opened Safari tab as I do not see such an action included in KM?

  2. I cannot test this approach as the OPEN 1PASSWORD BOOKMARK action does not work with 1Password 8 which is what I am running as you noted in your earlier posting in this thread. Perhaps someone else can do the testing?

  3. And to be crystal clear there may also be a website to website issue. I did exactly what you said manually and the copied 1Password URL into a new / second Safari tab and it a) DID NOT enter the login credentials for the Josh website and b) DID enter teh credentials for an banking website.

On the Josh website I had to move the curser to the username field for the credentials to be automatically entered.

  1. And one other thing with a little more thought; AND THIS IS MOST IMPORTANT. Why would I need to copy the 1Password Open and Fill URL in the first Safari tab and copy it to a second Safari tab? Would it not be the case that the first Safari tab would do what I need / want and this the problem is therefore back down to waiting for 1Password 8 to be updated so that the OPEN 1PASSWORD BOOKMARK action works? What am I missing?

Thanks.

  1. While KM does have tokens that make accessing and pasting the front Safari URL easy, there's nothing KM specific about this step. You can copy it like you would any other URL (i.e. click in the address bar or hit L, make sure the whole URL is selected, and copy like normal, probably with C.

  2. The whole point of this is to work around 1P8 not working with the 1Password Bookmark action by effectively making a replacement for it.

  3. This lines up with my experience too; some websites seem to need a manual click in the login fields before the credentials are filled. Not ideal, but at least it still works as-is for some sites, which is better than nothing.

You don't. You only need to copy it to a KM Open URL action so that you can use it in a macro in the future, as an alternative to the currently non-functional Open 1Password Bookmark action. Yes, once 1P8 is updated this should all be unnecessary, but if you want to use KM to open websites and fill in credentials with 1P now, this is the simplest way to do it, as once the Open URL action is set up, it's just a single action akin to Open 1Password Bookmark. In other words, this for 1P7:

And this for 1P8:


are functionally identical.

I understand that it is a workaround for 1Passowrd 8. I did not -- at least until now -- understand that the Copy portion of the Open & Fill URL was to be done manually and entered / used in the KM Open URL action.

Now that I understand, I have built the macro that you had in mind and it works inconsistently for the Josh website (because I generally, but not always, need to press tab to move into the credential fields) and consistently for other (where I do not need to ever press tab to move into the credential field).

Please see the macro below, is this what you had in mind?

Worth noting, I need to add an if statement at the start of the macro to make sure that 1Password and, if not, then open 1Password as this will NOT work without 1Password being open!

PS. This discovery / workaround is brilliant!

Start Safari and Load Josh Portal.kmmacros (8.9 KB)