Interface IUserImpersonation
Create a principal based on a user name and add roles from the current SecurityEntityProvider
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IUserImpersonation
Methods
CreatePrincipalAsync(String)
Create a principal based on a user name and add roles from the current SecurityEntityProvider
Declaration
Task<IPrincipal> CreatePrincipalAsync(string userName)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Security.Principal.IPrincipal> |
Remarks
This is no validation done, if the user does not exist it will be created without roles