Developer forum

Forum » Ecommerce - Standard features » Two factor authentication for front-end

Two factor authentication for front-end

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

Has anybody implemented two-factor authentication for login in the front end?

I could use some guidance :)

Thank you,
Adrian


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You need to use Azure AD login or similar

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

I could probably use that. But then the 2 factor authentication will just be a configuration on Azure AD? Or do I need to add custom logic to it?

Thank you,
Adrian

 
Claus Kølbæk
Claus Kølbæk
Reply

Hi Adrian

We have done some small login via the azure saml thing directly in a template before, for a closed off section, maybe that can give you some inspiration to get started?

var provider = Dynamicweb.Security.UserManagement.ExternalAuthentication.Provider.GetProviderById(1);
        var providerResult = provider?.ExternalLogOnProvider?.GetLoginResult();        
        if (providerResult?.Success != true || Pageview.User == null){
            provider.ExternalLogOnProvider.Login();
        }

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Claus,

Thank you very much.
It's a lot better than starting with an empty page.

Thank you,
Adrian

 

You must be logged in to post in the forum