Show / Hide Table of Contents

Class TenantAuthenticationOpenIdConnectSettingsValidator

Provides the default validation of IdentityAuthenticationScheme that has IRM.AspNetCore.Authentication.Serialization.OpenIdConnectOptions.

Inheritance
Object
TenantAuthenticationOpenIdConnectSettingsValidator
Inherited Members
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public class TenantAuthenticationOpenIdConnectSettingsValidator : ITenantSettingsValidator

Constructors

TenantAuthenticationOpenIdConnectSettingsValidator(IHttpClientFactory, IOptions<ExtendedIdentityOptions>, ExtendedIdentityErrorDescriber)

Initializes a new instance of TenantAuthenticationOpenIdConnectSettingsValidator.

Declaration
public TenantAuthenticationOpenIdConnectSettingsValidator(IHttpClientFactory clientFactory, IOptions<ExtendedIdentityOptions> identityOptions, ExtendedIdentityErrorDescriber errors = null)
Parameters
System.Net.Http.IHttpClientFactory clientFactory

The System.Net.Http.IHttpClientFactory used to create a client that will validate the authority address.

Microsoft.Extensions.Options.IOptions<ExtendedIdentityOptions> identityOptions

The extended identityoptions used to configure the identity system

ExtendedIdentityErrorDescriber errors

The ExtendedIdentityErrorDescriber used to provider error messages.

Methods

ValidateAsync(TenantSettingsManager, TenantSettings)

Declaration
public virtual async Task<IdentityResult> ValidateAsync(TenantSettingsManager manager, TenantSettings settings)
Parameters
TenantSettingsManager manager

TenantSettings settings

Returns
System.Threading.Tasks.Task<IdentityResult>

Implements
ITenantSettingsValidator.ValidateAsync(TenantSettingsManager, TenantSettings)

ValidateOptionsAsync(TenantSettingsManager, OpenIdConnectOptions, Boolean, List<IdentityError>)

Validates a single options instance.

Declaration
protected virtual async Task ValidateOptionsAsync(TenantSettingsManager manager, OpenIdConnectOptions options, bool requireSettings, List<IdentityError> errors)
Parameters
TenantSettingsManager manager

The TenantSettingsManager that can be used to retrieve tenant authentication settings properties.

IRM.AspNetCore.Authentication.Serialization.OpenIdConnectOptions options

The IRM.AspNetCore.Authentication.Serialization.OpenIdConnectOptions that should be validated.

Boolean requireSettings

true if settings (Authority, ClientId) is required; otherwise false

List<Microsoft.AspNetCore.Identity.IdentityError> errors

The collection to add errors to.

Returns
System.Threading.Tasks.Task

The System.Threading.Tasks.Task that represents the asynchronous operation.

Back to top Generated by DocFX