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;
 }
Exemple #3
0
        private IPrincipal GetPrincipal(LoginResponse user)
        {
            var identity = new CustomIdentity(_UserName, _AuthType, user.PersonID, user.RoleID, _Token);

            return(new CustomPrincipal(identity));
        }