Class AuthorizationSubject
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Authorization
Assembly: Cephalon.Abstractions.dll
Describes the caller or actor being evaluated by an authorization policy.
public sealed class AuthorizationSubjectInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”AuthorizationSubject(string, string?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)
Section titled “ AuthorizationSubject(string, string?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)”Creates a new authorization subject.
public AuthorizationSubject(string subjectId, string? displayName = null, IReadOnlyList<string>? roles = null, IReadOnlyList<string>? tenantIds = null, IReadOnlyDictionary<string, string>? attributes = null)Parameters
Section titled “Parameters”subjectId string
The stable subject identifier.
displayName string?
The human-readable subject name when one is known.
roles IReadOnlyList<string>?
Optional roles assigned to the subject.
tenantIds IReadOnlyList<string>?
Optional tenant identifiers associated with the subject.
attributes IReadOnlyDictionary<string, string>?
Optional attributes associated with the subject.
Properties
Section titled “Properties”Attributes
Section titled “ Attributes”Gets the attributes associated with the subject.
public IReadOnlyDictionary<string, string> Attributes { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
DisplayName
Section titled “ DisplayName”Gets the human-readable subject name when one is known.
public string? DisplayName { get; }Property Value
Section titled “Property Value”Gets the roles assigned to the subject.
public IReadOnlyList<string> Roles { get; }Property Value
Section titled “Property Value”SubjectId
Section titled “ SubjectId”Gets the stable subject identifier.
public string SubjectId { get; }Property Value
Section titled “Property Value”TenantIds
Section titled “ TenantIds”Gets the tenant identifiers associated with the subject.
public IReadOnlyList<string> TenantIds { get; }