Try our conversational search powered by Generative AI!

Change validationsettings for EPiServer CMS UI AspnetIdentity authentication

Vote:
 

Have implemented the EPiServer CMS UI AspNetIdentity authentication package described on this page: http://world.episerver.com/documentation/Items/Developers-Guide/Episerver-CMS/9/Security/episerver-aspnetidentity/

What I'm trying to do is to change the validation settings for password and username that is set in the ApplicationUserManager in this package. However all my tries to do this have not worked (creating my own UserManager and use it either by setting it in the owin startup file or by trying to set it in the InitializationModule).

Does anyone have a clue how to set new parameters for the validators in the UserManager when using the EPiServer.CMS.UI.AspNetIdentity package?

#151905
Aug 10, 2016 9:27
Vote:
 

Did you solve this? I am having the same issue.

#155515
Sep 20, 2016 8:55
Vote:
 

No, no solution for it yet. Had a discussion about it with EPiServer support but couldn't get anything to work and the last thing I heard from them was "I've created a support case with our developers and hopefully they can give some input on the subject. I'll update when I have any new information."

If you run this by the EPiServer support you can reference ticket #40374 which was my ticket regarding this.

#155518
Sep 20, 2016 9:07
Vote:
 

I have had a long unsatisfying conversation with episerver support (ticket #42064). Not able to get any useful information from them. They just keep referring to http://sveinaandahl.blogspot.se/2015/08/how-to-integrate-aspnet-identity-with.html, where the episerver aspnetidentity is not even used :(

I will try to reference your ticket.

#155521
Sep 20, 2016 9:26
Vote:
 

Hey, did you guys manage to resolve this? I'm facing a similar issue while trying use a custom UserManager.

#158261
Sep 26, 2016 12:00
Vote:
 

No response from EPiServer support. Yet.

#158262
Sep 26, 2016 12:02
Vote:
 

Thanks.

I've managed to get the Episerver application use my custom UserManager (SiteUserManager : ApplicationUserManager<TUser>) by explicitly registering its factory callback for the AppBuilder:

app.CreatePerOwinContext(new Func<IdentityFactoryOptions<SiteUserManager>, IOwinContext, SiteUserManager>(SiteUserManager.Create));

I'm still calling AddCmsAspNetIdentity<SiteUser>() to ensure all the other UI* providers and managers also get created for Episerver to use and then later replace the existing instance of ApplicationUserManager within the context to use SiteUserManager instead.

context.Set<ApplicationUserManager<SiteUser>>(siteUserManager);
#158289
Sep 26, 2016 16:26
* 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.