November Happy Hour will be moved to Thursday December 5th.

Creator Virtual Role

Vote:
 

I'm testing virtual roles in EPiServer 10.5.

CreatorRole has SupportClaims = false in its constructor, which means that IsInVirtualRole method will never be executed. Shouldn't SupportClaims be set to true?

I created my own version of CreatorRole for debugging purposes and noticed that when I call PrincipalInfo.CurrentPrincipal.IsInRole(MyCreatorRole.RoleName), context parameter in IsInVirtualRole method is always null. Is there a bug report on this one?

Thanks

#176743
Mar 24, 2017 11:26
Vote:
 

Did you ever find a solution to this? I've hit the same blocker where the context is always null.

#270565
Edited, Jan 26, 2022 9:03
* 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.