Table of Contents

Class OidcSettingsValidator

Namespace
SEBT.Portal.Infrastructure.Configuration.Validators
Assembly
SEBT.Portal.Infrastructure.dll

When a deployment configures an OIDC tenant, requires the rest of the client to be present and usable.

A discovery endpoint is what marks the instance as an OIDC tenant — the state allowlist reads it the same way — so an absent one means OIDC is off and nothing else is required. Once it is set, a gap in the remaining values does not surface until a visitor is already mid-login: the authorize redirect succeeds, and the failure lands after they return from the IdP. Failing the boot instead keeps that from reaching a household.

public class OidcSettingsValidator
Inheritance
object
OidcSettingsValidator

Methods

Validate(string?, OidcSettings)

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

public ValidateOptionsResult Validate(string? name, OidcSettings options)

Parameters

name string

The name of the options instance being validated.

options OidcSettings

The options instance.

Returns

ValidateOptionsResult

The Microsoft.Extensions.Options.ValidateOptionsResult result.