DapperMaticServiceAccount
Namespace: MJCZone.DapperMatic.AspNetCore.Models
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
An account for a program, not a person: an integration, a scheduled job, an AI assistant. It has its own name, roles, claims and tenant, and its keys sign in as it; policies treat it as any caller with those roles. It keeps working whoever comes and goes. Kept with the policies and tenants, or given in code or configuration.
sealed public
Contents
Constructors (1) | Methods (4) | Properties (8)
Constructors
DapperMaticServiceAccount
DapperMaticServiceAccount()Methods
GetType
GetType()ToString
ToString()Equals
Equals()GetHashCode
GetHashCode()Properties
Name
Gets or sets the account's name, unique within its tenant.
Type: string
Tenant
Gets or sets the tenant the account acts in, or null for the whole application.
Type: string?
Roles
Gets the account's roles.
Type: List<string>
Claims
Gets the account's claims, by type, which policies read as <c>@claims.type</c>.
Type: Dictionary<string, List<string>>
Description
Gets or sets what the account is for.
Type: string?
Disabled
Gets or sets a value indicating whether the account is turned off: its keys do not sign in.
Type: bool
CreatedAt
Gets or sets when the account was made.
Type: DateTimeOffset?
CreatedBy
Gets or sets who made it.
Type: string?