public void Authenticate(string userPrincipalName) { TokenIdentity tokenIdentity = new TokenIdentity() { IsAuthenticated = true, Name = userPrincipalName }; Identity = tokenIdentity; UserPrincipalName = userPrincipalName; }
public TokenPrincipal() { TokenIdentity tokenIdentity = new TokenIdentity() { AuthenticationType = "ActiveDirectory", IsAuthenticated = false, Name = "Anonymous" }; Identity = tokenIdentity; }