Class GrantDurabilityOptions
- Namespace
- Excalibur.A3.Authorization
- Assembly
- Excalibur.A3.Core.dll
Options governing whether authorization may run on a grant store that does not survive a restart.
public sealed class GrantDurabilityOptions
- Inheritance
-
GrantDurabilityOptions
- Inherited Members
Properties
AllowVolatileGrantStore
Gets or sets a value indicating whether a volatile (in-memory) grant store is permitted.
public bool AllowVolatileGrantStore { get; set; }
Property Value
- bool
false — the default — states that this host expects a durable grant store, and the framework fails fast at startup if a volatile store is registered. true permits a volatile store, and every grant is lost when the process exits.
Remarks
The protective value is what a host gets by saying nothing. Losing the grant set does not fail loudly: authorization keeps answering, and it answers deny for everyone, because a user whose grants vanished is indistinguishable from a user who never had any. The system stays up and stops letting anyone in — and the grants were recorded as saved.
Set this only for development and test hosts.