Class AuthorizationOptions
- Namespace
- Excalibur.Dispatch.Options.Middleware
- Assembly
- Excalibur.Dispatch.dll
Configuration options for authorization middleware.
public sealed class AuthorizationOptions
- Inheritance
-
AuthorizationOptions
- Inherited Members
- Extension Methods
Properties
AllowAnonymousAccess
Gets or sets a value indicating whether to allow anonymous access when no subject is present.
public bool AllowAnonymousAccess { get; set; }
Property Value
- bool
Default is false.
BypassAuthorizationForTypes
Gets or sets message types that bypass authorization.
public string[]? BypassAuthorizationForTypes { get; set; }
Property Value
- string[]
The current BypassAuthorizationForTypes value.
DefaultPolicyName
Gets or sets the default authorization policy name.
public string? DefaultPolicyName { get; set; }
Property Value
- string
The current DefaultPolicyName value.
Enabled
Gets or sets a value indicating whether authorization is enabled.
public bool Enabled { get; set; }
Property Value
- bool
Default is true.