Our 2FA is for Azure, it was custome written by one of my colleges I lifted it from one of out V10 sites and drop it in to the V13 site with some tweeks to the code.
Also you need to tweak the Program.CS file to implement the code.
I believe the code we use is based on Example given in the Umbraco Documentation, but we put our own spin on it to work the way we want it to work.
Umbraco 13 2FA
Hi,
I am trying to add 2Fa to an umbraco 13 site, I see that the setup files been removed from Umbraco 13, and looking at the document:
https://docs.umbraco.com/umbraco-cms/reference/security/external-login-providers#static-extension-class
It says that the
OpenIdConnectBackOfficeExternalLoginProviderOptions ConfigureAuthentication
Can be register in Program.CS file but there are no instructions on how to do this, can someone please point me in the correct direction.
I have tried to move the code over from 10 to 13 but I can't work out how to register it.
Fixed it.
Hi Darren,
I am trying to build 2FA for my Umbraco 13 application. Can you let me know can we get the control once the user is logged in to invoke the 2FA?
Thanks in adv.
Our 2FA is for Azure, it was custome written by one of my colleges I lifted it from one of out V10 sites and drop it in to the V13 site with some tweeks to the code.
Also you need to tweak the Program.CS file to implement the code.
I believe the code we use is based on Example given in the Umbraco Documentation, but we put our own spin on it to work the way we want it to work.
Sorry I can't give you our code I am afraid.
if you look at:
https://www.jondjones.com/learn-umbraco-cms/umbraco-13-tutorials/how-tos/umbraco-13-upgrade-and-startupcs-to-programcs-refactoring-guide/
This shows you how to refactor your Program.CS file
Also you need this:
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
builder.Services.ConfigureOptions
builder.CreateUmbracoBuilder() .AddBackOffice() .AddWebsite() .AddDeliveryApi() .AddComposers() .ConfigureAuthentication() .Build();
Hope the above few lines of code help.
is working on a reply...