Skip to content

Instantly share code, notes, and snippets.

@itsjfx
Last active April 26, 2024 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsjfx/e9e63130ba17a180a2e42294a2d955d5 to your computer and use it in GitHub Desktop.
Save itsjfx/e9e63130ba17a180a2e42294a2d955d5 to your computer and use it in GitHub Desktop.
Fixes FIDO2 login on Firefox by patching variables on the Azure login page
// ==UserScript==
// @name Azure Firefox FIDO2 patch
// @namespace https://jfx.ac
// @version 0.1
// @description Fixes FIDO2 login on Firefox by patching variables on the Azure login page
// @author jfx
// @match https://login.microsoftonline.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
window.$Config.urlFidoLogin = "https://login.microsoft.com/common/fido/get?uiflavor=Web\u0026cobrandid=ed5d1924-9524-4e70-8f68-5ee5e35afbef";
window.$Config.fIsFidoSupported = true;
window.$Config.urlPost = "https://login.microsoftonline.com/common/login";
window.$Config.urlPostAad = "https://login.microsoftonline.com/common/login";
})();
@itsjfx
Copy link
Author

itsjfx commented Apr 26, 2024

I've wrote a blog post about this gist here if anybody is interested: https://jfx.ac/blog/logging-into-entra-id-fido2-firefox-linux/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment