Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect if no devices are connected and send a StatusUpdate accordingly. #315

Open
wants to merge 1 commit into
base: ctap2-2021
Choose a base branch
from

Conversation

msirringhaus
Copy link
Contributor

Try to fix #312

This is not working for macOS, as I have no idea how to get the already plugged in devices (and if none are plugged in, an empty list) on that platform.

Upon start, we make the Monitor send DevicesAdded with an empty list, to let the DeviceSelector know we are starting and have no device yet. Then whenever devices are removed (either by sending NotAToken or being physically plugged out), we check if it was the last one. If so, we send the StatusUpdate accordingly.

@jschanck
Copy link
Collaborator

Unfortunately I don't think we can accept this until we have a solution for macOS (Firefox is going to stick with auth-rs for security keys on macOS for the foreseeable future). Should I try to find someone who can help us debug the macOS issue?

@msirringhaus
Copy link
Contributor Author

Unfortunately I don't think we can accept this until we have a solution for macOS (Firefox is going to stick with auth-rs for security keys on macOS for the foreseeable future). Should I try to find someone who can help us debug the macOS issue?

Sorry, it totally missed the question in there, and read it as a statement. Yes, it would be great if you could find somebody who knows the macOS SDK and how things work there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a status update to tell the user to connect a device
2 participants