ข้ามไปยังเนื้อหา

Class AuthorizationSubject

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.Authorization
Assembly: Cephalon.Abstractions.dll

Describes the caller or actor being evaluated by an authorization policy.

public sealed class AuthorizationSubject

objectAuthorizationSubject

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

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)

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.

Gets the attributes associated with the subject.

public IReadOnlyDictionary<string, string> Attributes { get; }

IReadOnlyDictionary<string, string>

Gets the human-readable subject name when one is known.

public string? DisplayName { get; }

string?

Gets the roles assigned to the subject.

public IReadOnlyList<string> Roles { get; }

IReadOnlyList<string>

Gets the stable subject identifier.

public string SubjectId { get; }

string

Gets the tenant identifiers associated with the subject.

public IReadOnlyList<string> TenantIds { get; }

IReadOnlyList<string>