Customizing the 2FA activation screen is not working

We have implemented 2FA and it has been working fine in earlier version of v17. Recently, we upgraded to v17.5.0 and it seems that Customizing the 2FA activation screen is not working. It is using the default 2FA screen. It is not picking up /App_Plugins/TwoFactorProviders/2fa-activation.js

Please can you provide your thoughts on this issue or if you need any further information then I happy to relay.

	{
	  "$schema": "../../umbraco-package-schema.json",
	  "name": "2fa providers",
	  "version": "1.0.0",
	  "extensions": [
	    {
	      "type": "mfaActivationProvider",
	      "alias": "UmbracoUserAppAuthenticator",
	      "name": "UmbracoUserAppAuthenticator",
	      "forProviderName": "UmbracoUserAppAuthenticator",
	      "element": "/App_Plugins/TwoFactorProviders/2fa-activation.js", // This line is the only change
	      "meta": {
	        "label": "Google Authenticator"
	      }
	    }
	  ]
	}

Hi @shaishavkarnani

The extension type looks wrong. In v17 the only MFA type in the registry is mfaLoginProvider, there’s no mfaActivationProvider. An entry with a type that doesn’t match anything just gets discarded, which is why you’re getting the default screen.

Also, I assume the comments in your JSON file are added for this post as that is not valid JSON if they are actually present…

Justin