Class IdentityProviderConfigurationValidationContext<T>
- Namespace
- Duende.IdentityServer.Validation
- Assembly
- Duende.IdentityServer.dll
Context for identity provider configuration validation.
public class IdentityProviderConfigurationValidationContext<T> where T : IdentityProvider
Type Parameters
T
- Inheritance
-
IdentityProviderConfigurationValidationContext<T>
- Derived
- Inherited Members
Constructors
IdentityProviderConfigurationValidationContext(T)
Initializes a new instance of the IdentityProviderConfigurationValidationContext class.
public IdentityProviderConfigurationValidationContext(T idp)
Parameters
idp
T
Properties
ErrorMessage
Gets or sets the error message.
public string? ErrorMessage { get; set; }
Property Value
IdentityProvider
Gets or sets the identity provider.
public T IdentityProvider { get; }
Property Value
- T
IsValid
Returns true if the configuration is valid.
public bool IsValid { get; set; }
Property Value
Methods
SetError(string)
Sets a validation error.
public void SetError(string message)
Parameters
message
stringThe message.