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
TThe 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
identityProviderTThe provider to check.
Exceptions
- ArgumentNullException
identityProviderisnull.
Properties
ErrorMessage
What is wrong with the provider, when something is.
public string? ErrorMessage { get; set; }
Property Value
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
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
messagestring