A script to sign in to Microsoft Entra ID using passkeys in unsupported environments (e.g. Firefox for Linux)
The latest versions of Firefox for Linux support FIDO2 / passkey sign-in. This works as expected for most websites, including login.live.com
(which is an endpoint for personal MS account).
However, login.microsoftonline.com
, which is for MS Entra ID, intentionally blocks this feature on Firefox. This is probably because Firefox for Linux is not in the Officially supported environments.
This can be overridden in two ways. One is to change the User-Agent
(by devtool or some extension), and the other is to rewrite configuration objects for login.microsoftonline.com
web app. This script does the latter.