private IPrincipal GetPrincipal(LoginResponse user) { var identity = new CustomIdentity(_UserName, _AuthType, user.PersonID, user.RoleID, _Token); return new CustomPrincipal(identity); }
public CustomPrincipal(CustomIdentity identity) { _Identity = identity; }
private IPrincipal GetPrincipal(LoginResponse user) { var identity = new CustomIdentity(_UserName, _AuthType, user.PersonID, user.RoleID, _Token); return(new CustomPrincipal(identity)); }