Table of Contents

Class IdentityProviderConfigurationValidationContext<T>

Namespace
Fdyay.IdentityServer.Validation
Assembly
Fdyay.IdentityServer.Core.dll

A provider being validated, and what validating it found.

public class IdentityProviderConfigurationValidationContext<T> where T : IdentityProvider

Type Parameters

T

The provider's type, so a check for one kind reads that kind's typed members.

Inheritance
IdentityProviderConfigurationValidationContext<T>
Derived
Inherited Members

Constructors

IdentityProviderConfigurationValidationContext(T)

Creates the context for checking identityProvider, valid until a check refuses it.

public IdentityProviderConfigurationValidationContext(T identityProvider)

Parameters

identityProvider T

The provider to check.

Exceptions

ArgumentNullException

identityProvider is null.

Properties

ErrorMessage

What is wrong with the provider, when something is.

public string? ErrorMessage { get; set; }

Property Value

string

IdentityProvider

The provider being validated.

public T IdentityProvider { get; }

Property Value

T

IsValid

Whether the provider can be served. True until a check says otherwise.

public bool IsValid { get; set; }

Property Value

bool

Methods

SetError(string)

Marks the provider invalid, for the reason given. A later call's reason replaces an earlier one's.

public void SetError(string message)

Parameters

message string