Developer forum

Forum » Ecommerce - Standard features » Azure B2C login. How to configure

Azure B2C login. How to configure

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a project where I need to auto-login a user that is authenticated with Azure B2C in another application.

I have noticed that we have support for Azure AD and Azure B2C in Dynamicweb.

I have found the configuration for Azure AD but I can't find something similar for Azure B2C.
Anybody can help me out?

Thank you,
Adrian


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi

Please, find the manual attached.

BR, Oleg QA

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Oleg,

Thank you very much.

Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Oleg,

I have followed the document and configured the Azure B2C login provider.

How do I test that it works?

In my settings, I have created a page on the website that is added for the Redirect URL in the Azure application and Login provider.

I cannot find any logs in the solution. Should I find anything under /System/Logs/?

Assuming that I want to authenticate the user for Front-end, should I care about the "/Admin/Access/ExternalAuthentication.aspx" link?

Thank you,
Adrian

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi

Meaning of test is ensure the user configured in provider's admin (Azure B2C here) can perform login (and be created if absent before) via external autherntication set with the provider up in DW admin. Login should be perofrmed using /Admin/Public/Social/ExternalLogin.aspx as for general case of using external authentication. 'Event viewer' allows to check login details in backend. Testing could be done with browser page in incognito mode, frontend and backend (with 'Enable backend login' option checked) should be under SSL connection. A user group the user is created in should have checked 'Allow backend login' option to grant access the user in backend (if backend login).

BR, Oleg QA  

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Oleg,

Thank you for the details.

Does this mean that I have to include the /Admin/Public/Social/ExternalLogin.aspx link in the configuration of Azure B2C?

Thank you,
Adrian

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Oleg,

I have located the first error:

System.IO.FileLoadException: Could not load file or assembly 'Microsoft.IdentityModel.Logging, Version=6.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)    at Microsoft.IdentityModel.Tokens.CryptoProviderFactory.set_Default(CryptoProviderFactory value)    at Microsoft.IdentityModel.Tokens.CryptoProviderFactory.

I am using DW 9.10.12.

Thank you,

Adrian

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

Azure admin should use "/Admin/Access/ExternalAuthentication.aspx", see second screen in point 6 of the manual . "/Admin/Public/Social/ExternalLogin.aspx" is used for frontend login. Note that "Login.schtml" ('Extranet' module in 'Login' mode) of Rapido template set already has the link on rendering if at least one item is avaialble and active in 'External Authentication' list. 

I've checked the feature with frontend/backend login on 9.10.12 and last 9.10.15 and did not have any fault, so follow the setup carefully. 

BR, Oleg QA

 

You must be logged in to post in the forum