VirtualRoles – EPiServer.Security.MappedRole not working

Vote:
 

Hi there,

I have test project on my local but virtual mapped roles are not working.

Steps:

  1. Adding CmsEditors group.
  2. New user assigned to this group creation.
  3. Attempt to login with new user.

Upon login there is no autentification failure so instead of some regular warning (as usual) the login page is returned from application.

If I put CmsEditors as allowed group to location for EPiServer it works. So I suppose the mapping is failing somewhere.

Virtual Roles:


  
    
  

Location:


          
      
        
        
      
#195446
Jul 25, 2018 11:03
Vote:
 

Have you created WebEditors, WebAdmins in the CMS groups (If using ASP.NET Identity) and made sure your user is in it?

#195448
Jul 25, 2018 11:28
Vote:
 

Also it would be good like with all forum posts to list the version of the CMS you're on

#195449
Jul 25, 2018 11:29
Vote:
 

I can be wrong here, but I understand the mappedrole to be:

  • If an user is in WebEditors, then he/she is in CmsEditors
  • The vice versa is not true, if an user is in CmsEditors, it does not mean they belong to WebEditors. 

I.e. the behavior you are seeing is correct. 

#195450
Edited, Jul 25, 2018 11:36
Vote:
 

Yes that's what I was going to get at too, the groups in the CMS need to be the Roles not the VirtualRoles.

#195452
Jul 25, 2018 11:53
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.