Class AuthUser
Represents a user in the authentication system.
Inherited Members
Namespace: Innovt.Domain.Security
Assembly: Innovt.Domain.dll
Syntax
public class AuthUser : Entity
Constructors
| Edit this page View SourceAuthUser()
Initializes a new instance of the AuthUser class.
Declaration
public AuthUser()
Properties
| Edit this page View SourceDomainId
Gets or sets the domain ID associated with the user.
Declaration
public string DomainId { get; set; }
Property Value
Type | Description |
---|---|
string |
Groups
Gets or sets the groups associated with the user.
Declaration
public IList<Group> Groups { get; }
Property Value
Type | Description |
---|---|
IList<Group> |
Id
Gets or sets the user ID.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Gets or sets the name of the user.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Roles
Gets or sets the roles associated with the user.
Declaration
public IList<Role> Roles { get; }
Property Value
Type | Description |
---|---|
IList<Role> |
Methods
| Edit this page View SourceAssignGroup(Group)
Assigns a group to the user.
Declaration
public void AssignGroup(Group group)
Parameters
Type | Name | Description |
---|---|---|
Group | group | The group to assign. |
AssignRole(Role)
Assigns a role to the user.
Declaration
public void AssignRole(Role role)
Parameters
Type | Name | Description |
---|---|---|
Role | role | The role to assign. |
UnAssignGroup(string)
Unassigns a group from the user.
Declaration
public void UnAssignGroup(string groupName)
Parameters
Type | Name | Description |
---|---|---|
string | groupName | The name of the group. |
UnAssignRole(string, string)
Unassigns a role from the user.
Declaration
public void UnAssignRole(string scope, string roleName)
Parameters
Type | Name | Description |
---|---|---|
string | scope | The scope of the role. |
string | roleName | The name of the role. |