Table of Contents

Class CapabilityTokenOptionsValidator

Namespace
ReferenceApplication.Web.Governance
Assembly
ReferenceApplication.Web.dll

Validates capability token configuration during application startup.

public sealed class CapabilityTokenOptionsValidator : IValidateOptions<CapabilityTokenOptions>
Inheritance
CapabilityTokenOptionsValidator
Implements
Inherited Members

Remarks

Nothing is required while tokens are disabled. Failure messages name the setting but never echo a key value.

Verification keys are checked the way AsiBackbone's public-key verifier reads them, and the current signing key must match a trusted, unrevoked verification key under KeyVersion. A configuration that would issue tokens nothing here can verify fails at startup instead of denying every request.

Methods

Validate(string?, CapabilityTokenOptions)

Validates a specified named options instance (or all if name is null).

public ValidateOptionsResult Validate(string? name, CapabilityTokenOptions options)

Parameters

name string

The name of the options instance being validated.

options CapabilityTokenOptions

The options instance.

Returns

ValidateOptionsResult

The ValidateOptionsResult result.