Class AuthorizationContext
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Authorization
Assembly: Cephalon.Abstractions.dll
Describes the operation-specific context supplied to an authorization evaluation.
public sealed class AuthorizationContextInheritance
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”AuthorizationContext(string, string?, string?, string?, IReadOnlyDictionary<string, string>?)
Section titled “ AuthorizationContext(string, string?, string?, string?, IReadOnlyDictionary<string, string>?)”Creates a new authorization context.
public AuthorizationContext(string action, string? policyId = null, string? tenantId = null, string? correlationId = null, IReadOnlyDictionary<string, string>? attributes = null)Parameters
Section titled “Parameters”action string
The action being requested, such as read, write, or approve.
policyId string?
The explicit policy identifier requested by the caller when one is known.
tenantId string?
The tenant identifier associated with the current operation.
correlationId string?
The correlation identifier associated with the current operation.
attributes IReadOnlyDictionary<string, string>?
Optional operation-specific attributes.
Properties
Section titled “Properties”Action
Section titled “ Action”Gets the action being requested.
public string Action { get; }Property Value
Section titled “Property Value”Attributes
Section titled “ Attributes”Gets the operation-specific attributes.
public IReadOnlyDictionary<string, string> Attributes { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
CorrelationId
Section titled “ CorrelationId”Gets the correlation identifier associated with the current operation.
public string? CorrelationId { get; }Property Value
Section titled “Property Value”PolicyId
Section titled “ PolicyId”Gets the explicit policy identifier requested by the caller when one is known.
public string? PolicyId { get; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the tenant identifier associated with the current operation.
public string? TenantId { get; }