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

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

            return(new CustomPrincipal(identity));
        }