Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

ASP.NET Identity on Episerver Commerce site

Vote:
 

Hello,

I'm struggling quite a bit with trying to understand the documentation and getting ASP.NET Identity to run on a Commerce site. The documentation I'm referring to is mainly these two pages (for CMS and Commerce):

 - http://world.episerver.com/documentation/Items/Developers-Guide/Episerver-CMS/9/Security/episerver-aspnetidentity/

 - http://world.episerver.com/documentation/Items/Developers-Guide/Episerver-Commerce/9/Security/aspnet-identity-registrar/

I'm also looking at Quicksilver to get some ideas. Does anyone have a working example using ASP.NET Identity on a Commerce site and can point me in the right direction? Should I look at both of these documents to get ASP.NET Identity up and running or since it's Commerce we're talking about only the second one in the list? 

For instance I'm a bit puzzled about whether to use UserManager or a registered IRegistrar to create an account? When using the IRegistrar as described in the Commerce documentation I get an exception saying "Constructor on type 'EPiServer.Cms.UI.AspNetIdentity.ApplicationUser' not found." so something must be missing there on my side. 

I understand that this questions is a bit fuzzy and a rather big topic but any help is greatly appreciated.

Best regards

/Martin

#162092
Oct 10, 2016 18:49
Vote:
 

The IRegistrar is used if you want to keep editors and customers seperate.  Quicksilver has a working asp.net identity solution.  You need to follow the instructions in the first link to setup.  That means removing forms authentication, adding a startup file and configuring the OWin pipeline

#162155
Oct 11, 2016 18:36
Vote:
 

I'm trying to do the same thing and having a separate login area and I am running into the same problem with the constructor error.  

#173685
Jan 04, 2017 21:30
Vote:
 

Hi

Anyone found a solution to this issue?

Regards

Farhad

#196143
Aug 20, 2018 13:41
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.