airmessage / airmessage-server

AirMessage's native message relay server for Mac
Apache License 2.0
183 stars 12 forks source link

Add support for Google accounts with security keys #36

Closed StevenPrescott closed 1 year ago

StevenPrescott commented 1 year ago

Right now, you can't sign into a Google account that uses security keys because the in-app browser on Mac doesn't support them in AirMessage. Additionally, with Advanced Protection enabled there is no bypass other than removing and re-enrolling all your keys.

Rather than using the alternative iMessage setup method, it would be nice if the app could either: show the URL (so the user can copy it into their own browser that does support security keys) or be given the option to complete the sign-in directly in their browser.

tagavari commented 1 year ago

On macOS 10.15 or later, AirMessage Server 4 uses ASWebAuthenticationSession, which uses Safari by default, or the user's default browser if it supports web authentication sessions. I believe Chrome and Edge support this feature.

On macOS 10.14 or earlier, AirMessage Server 4 will launch the default browser.

Google's support page on security keys says that security keys are supported on Chrome, Firefox, and Safari.

I haven't tested AirMessage with an account protected by a security key, though the documentation implies this should work in practice. Can you explain how what you're experiencing differs from my understanding of how the process should work?

StevenPrescott commented 1 year ago

Sorry for the late reply. I went back and tried again. This time the login with Google option opened in a Safari window that supports keys. Closing this issue :)