Configuring sign-in in D365 Commerce E-Commerce Portal.
If you are deploying D365 Commerce E-Commerce, even for a demo, then you would surely need to configure sign-in in order to see order history, save addresses etc.
This can be done by configuring an Azure B2C Tenant and application. Instruction can be found here: https://docs.microsoft.com/en-us/dynamics365/commerce/set-up-b2c-tenant
However, there is a bug in the documentation of that link when it comes to reply URLs. The documentation says you should use your e-commerce URL and add _msdyn365/authresp at the end.
This most probably will not work for you (unless it is fixed in an update released after this post) and instead your sign-in button in the online store-front will simple do nothing except fresh the page. To solve this the reply URL should be simply be:
https://login.commerce.dynamics.com/_msdyn365/authresp
Now when you click sign in in the online store front you will be re-directed to the sign-in / sign-up flow you configured in the Azure B2C application.
Hope this saves you some time and some headaches.
Comments
-
Hi, Facing a similar issue with what you have described. However I have tried you solution but no luck. The page returns 500 error. Aside from the page refreshing when you click refresh, when I access the sign-in URL directly I can go the sign-in page but it is inactive as it has an image covering the front with a label saying Loading. Any suggestions on how to make this work. Thanks

Like
Report
*This post is locked for comments