BUG: cli auth prompt immediately dismissed with Apple Watch [macOS]
Hiya,
I'm having an issue as of this morning using the 1password cli integration with the 1p8 mac beta.
It launches the prompt for me to authorise an action, but its immediately dismissed (i see it flicker), and I get the following error:authorization prompt dismissed, please try again
1Password Version: 80700002
Extension Version: Not Provided
OS Version: 12.3
Comments
-
Hi, I have the same error, the version that I'm using for 1password-cli is 2.0.2, and for 1password 8.7.0~90.BETA
In the console shows the follow messages
INFO 2022-04-22T10:33:34.432 tokio-runtime-worker(ThreadId(5)) [1P:native-messaging/op-native-core-integration/src/lib.rs:307] Extension connection accepted. WARN 2022-04-22T10:33:34.448 op_executor:invocation_loop(ThreadId(14)) [1P:foundation/op-sys-info/src/process_information/linux.rs:394] no top-level parent was found for pid 172170 ERROR 2022-04-22T10:33:34.464 tokio-runtime-worker(ThreadId(5)) [1P:native-messaging/op-native-core-integration/src/connection_handler.rs:60] message from b5x was None: EndConnection ERROR 2022-04-22T10:33:34.464 tokio-runtime-worker(ThreadId(5)) [1P:native-messaging/op-native-core-integration/src/connection_handler.rs:31] Dropping connection with b5x due to error handling incoming message: EndConnection ERROR 2022-04-22T10:33:34.464 tokio-runtime-worker(ThreadId(5)) [1P:native-messaging/op-native-core-integration/src/connection_handler.rs:63] failed to receive message from b5x: Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }) ERROR 2022-04-22T10:33:34.464 tokio-runtime-worker(ThreadId(5)) [1P:native-messaging/op-native-core-integration/src/connection_handler.rs:31] Dropping connection with b5x due to error handling incoming message: EndConnection ERROR 2022-04-22T10:33:34.464 tokio-runtime-worker(ThreadId(4)) [1P:native-messaging/op-native-core-integration/src/connection_handler.rs:63] failed to receive message from b5x: Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }) ERROR 2022-04-22T10:33:34.464 tokio-runtime-worker(ThreadId(4)) [1P:native-messaging/op-native-core-integration/src/connection_handler.rs:31] Dropping connection with b5x due to error handling incoming message: EndConnection
0 -
Hey! That does not look right. Could you tell which OS/distribution you are using?
0 -
Same problem here. Happens when biometric unlock is enabled. If I disable biometric unlock, I instead get "You are not currently signed in".
1Password for Mac 8.7.1
1Password CLI 2.4.1
MacBook Pro, Intel i9
macOS 12.3.10 -
I'm not sure what changed, but for some reason it seems to be working now, at least for the moment. Here's what I've done since my previous post, as best I can recall:
- Disabled biometric unlock and signed in manually with
eval $(op signin)
. - Successfully ran a couple of
op
commands. - Tried turning biometric unlock back on after having successfully signed in the old-school way, but it didn't seem to work right away.
- Turned biometric unlock off again.
- Closed the terminal where I had tested manual sign-in and went back to other tasks.
- A few hours later, I decided to give it one more try before closing up shop for the day, so I turned biometric unlock back on one more time.
It was at this point that I ran an authenticated
op
command and the authentication prompt actually stayed on-screen and allowed me to unlock with my Apple Watch. I then went to the 1Password app, explicitly locked it from the menu, then closed the 1Password window. When I went back to the terminal window and tried the command again, it prompted again for authentication as expected, and again the prompt remained on-screen and allowed me to unlock.0 - Disabled biometric unlock and signed in manually with
-
Hi,
I'm also experiencing the same thing. For me my Apple Watch auth prompt closes itself. I'f I'm not wearing my watch, it won't ask via fingerprint (when available) will instead just take a password or give me a "allow" option for ssh access.
Happy to post a log in here, if someone can let me know that's no sensitive information in it, and that it'll be useful.
Here's a gif:
0 -
Thank you both for reporting back with more details. We have seen some similar reports when using Apple Watch. To see if these cases are indeed similar:
- When you are running into this problem, is your Mac in clamshell mode by any chance?
- And when you run into this problem, are you still able to unlock macOS itself with the Apple Watch?
@jamesstidard, logs are definitely helpful! The logs do not contain any secrets like your account password and we go out of our way to make sure there is as little sensitive information in there as possible.
About 1Password diagnostics information
You can send a diagnostics report by following these instructions:
Sending Diagnostics Reports (Mac)
Attach the diagnostics to an email message addressed to
support+forum@1password.com
.With your email please include:
- A link to this thread:
https://1password.community/discussion/128135/bug-cli-auth-prompt-immediately-dismissed
- Your forum username
You should receive an automated reply from our BitBot assistant with a Support ID number. Please post that number here. Thanks very much!
0 -
I've not been wearing my watch while working because of this, just put it on to try and get you the details love, but it's working again now. Will report back with stuff above if it breaks again.
Thanks.
0 -
Thank you @jamesstidard! We'll be here to take any further information you should have on this if the issue returns.
0 -
I think I have reproduced this correctly. It seems that this happens with the biometric macOS unlock is disabled and requires it's periodic manual password entry unlock to "re-enable TouchID". I have experienced this in clamshell mode.
0 -
^ Diagnostics output: [#KYX-41567-836]
0 -
Thank you for submitting that diagnostics file, @afroman! That will be of great value in our search for the cause of the problem.
Just to make sure that I am correctly recording your findings, when you say that it "happens with the biometric macOS unlock is disabled" do you mean:
a. TouchID is disabled in macOS system settings
b. TouchID is disabled in the Security settings of the 1Password app
c. TouchID is temporarily disabled by macOS (for example because of a few failed attempts) and it will start working again after you have entered your macOS system password once (for example after locking your Mac)
d. Something differentWe have seen some similar reports for option c. If that is also the case for you, locking and unlocking your Mac has shown to be a successful workaround for the problem.
In the meantime, we are continuing our investigation to the root cause of the issue. Thanks again for helping us out with that 🙌
0 -
I have an interesting variant of this bug:
I have biometric lock enabled but my laptop is closed and i'm connected to an external monitor (therefore biometric lock isn't available) - not a problem when using the Quick Access shortcut to open 1Password, but looks like 1Password being unlocked isn't enough for first run of the
op item get
command and it's failing on the immediately dismissed biometric authorization promptop --version: 2.14.0
os: mac os 13.2
macbook pro m20 -
Hi @mike0x41 and @drewipson:
Would each of you mind sharing some diagnostics details with us? I'd like to ask you both to create a diagnostics report from your Mac:
Sending Diagnostics Reports (Mac)
Attach the diagnostics to an email message addressed to
support+forum@1password.com
.With your email please include:
- A link to this thread:
https://1password.community/discussion/128135/bug-cli-auth-prompt-immediately-dismissed#latest
- Your forum username:
mike0x41
/drewipson
You should receive an automated reply from our BitBot assistant with a Support ID number. Please post that number here. Thanks very much!
0 - A link to this thread:
-
Did anyone manage to solve this? Having it intermittent and it's driving me mad as the only way to solve it is to reboot
0 -
Hi! I thought I'd bump this thread, as this just started happening to me recently. Two potential factors from the thread so far that match my case: I am operating my Mac in clamshell mode, and I do have 'Unlock my Mac with Apple Watch' enabled. When the problem occurs, I've found extracting my Mac, opening it, and running
op signin
in the CLI will work: I get the TouchID prompt, answer it, and things work...until I close the clamshell again, at which point it's no dice. Happy to generate diagnostics if needed; hopefully this is a fixable problem!0 -
Thanks for bringing this to our attention. I'm sorry that you're running into this. We are currently working on an major update for the authorization prompts that might solve this problem.
I'll report back when that update is available on the nightly or beta releases of the app, so you can give it a try.
0 -
Hey all! The latest nightly release of the 1Password app contain the major update to the authorization prompts I talked about earlier this week. The new prompts not only look prettier (if you ask me), but I expect them to solve the reported issue as well.
You can try out the nightly release by following these steps, but selecting "Nightly" instead of "Beta" as the release channel. Alternatively, these will be available in the beta release sometime soon.
If you give it a try, let me know if this resolves the issue!
1