Browse Source
Introduce a ValidateOnStart() method in all builders
pull/2481/head
Makar
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
22 changed files with
243 additions and
0 deletions
-
src/OpenIddict.Client.AspNetCore/OpenIddictClientAspNetCoreBuilder.cs
-
src/OpenIddict.Client.DataProtection/OpenIddictClientDataProtectionBuilder.cs
-
src/OpenIddict.Client.Owin/OpenIddictClientOwinBuilder.cs
-
src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationBuilder.cs
-
src/OpenIddict.Client.SystemNetHttp/OpenIddictClientSystemNetHttpBuilder.cs
-
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationBuilder.cs
-
src/OpenIddict.Client/OpenIddictClientBuilder.cs
-
src/OpenIddict.Core/OpenIddictCoreBuilder.cs
-
src/OpenIddict.EntityFramework/OpenIddictEntityFrameworkBuilder.cs
-
src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreBuilder.cs
-
src/OpenIddict.MongoDb/OpenIddictMongoDbBuilder.cs
-
src/OpenIddict.Quartz/OpenIddictQuartzBuilder.cs
-
src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreBuilder.cs
-
src/OpenIddict.Server.DataProtection/OpenIddictServerDataProtectionBuilder.cs
-
src/OpenIddict.Server.Owin/OpenIddictServerOwinBuilder.cs
-
src/OpenIddict.Server/OpenIddictServerBuilder.cs
-
src/OpenIddict.Validation.AspNetCore/OpenIddictValidationAspNetCoreBuilder.cs
-
src/OpenIddict.Validation.DataProtection/OpenIddictValidationDataProtectionBuilder.cs
-
src/OpenIddict.Validation.Owin/OpenIddictValidationOwinBuilder.cs
-
src/OpenIddict.Validation.ServerIntegration/OpenIddictValidationServerIntegrationBuilder.cs
-
src/OpenIddict.Validation.SystemNetHttp/OpenIddictValidationSystemNetHttpBuilder.cs
-
src/OpenIddict.Validation/OpenIddictValidationBuilder.cs
|
|
@ -30,6 +30,17 @@ public sealed class OpenIddictClientAspNetCoreBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictClientAspNetCoreBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictClientAspNetCoreBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictClientAspNetCoreOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict client ASP.NET Core configuration.
|
|
|
/// Amends the default OpenIddict client ASP.NET Core configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -29,6 +29,17 @@ public sealed class OpenIddictClientDataProtectionBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictClientDataProtectionBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictClientDataProtectionBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictClientDataProtectionOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict client ASP.NET Core Data Protection configuration.
|
|
|
/// Amends the default OpenIddict client ASP.NET Core Data Protection configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -30,6 +30,17 @@ public sealed class OpenIddictClientOwinBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictClientOwinBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictClientOwinBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictClientOwinOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict client OWIN/Katana configuration.
|
|
|
/// Amends the default OpenIddict client OWIN/Katana configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -32,6 +32,17 @@ public sealed class OpenIddictClientSystemIntegrationBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictClientSystemIntegrationBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictClientSystemIntegrationBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictClientSystemIntegrationOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict client system integration configuration.
|
|
|
/// Amends the default OpenIddict client system integration configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -33,6 +33,17 @@ public sealed class OpenIddictClientSystemNetHttpBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictClientSystemNetHttpBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictClientSystemNetHttpBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictClientSystemNetHttpOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict client/System.Net.Http configuration.
|
|
|
/// Amends the default OpenIddict client/System.Net.Http configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -27,6 +27,17 @@ public sealed partial class OpenIddictClientWebIntegrationBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictClientWebIntegrationBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictClientWebIntegrationBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictClientWebIntegrationOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict client Web integration configuration.
|
|
|
/// Amends the default OpenIddict client Web integration configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -34,6 +34,18 @@ public sealed class OpenIddictClientBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictClientBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictClientBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictClientOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Registers an event handler using the specified configuration delegate.
|
|
|
/// Registers an event handler using the specified configuration delegate.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -30,6 +30,17 @@ public sealed class OpenIddictCoreBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictCoreBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictCoreBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictCoreOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict core configuration.
|
|
|
/// Amends the default OpenIddict core configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -31,6 +31,17 @@ public sealed class OpenIddictEntityFrameworkBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictEntityFrameworkBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictEntityFrameworkBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictEntityFrameworkOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict Entity Framework 6.x configuration.
|
|
|
/// Amends the default OpenIddict Entity Framework 6.x configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -31,6 +31,17 @@ public sealed class OpenIddictEntityFrameworkCoreBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictEntityFrameworkCoreBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictEntityFrameworkCoreBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictEntityFrameworkCoreOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict Entity Framework Core configuration.
|
|
|
/// Amends the default OpenIddict Entity Framework Core configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -31,6 +31,17 @@ public sealed class OpenIddictMongoDbBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictMongoDbBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictMongoDbBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictMongoDbOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict MongoDB configuration.
|
|
|
/// Amends the default OpenIddict MongoDB configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -27,6 +27,17 @@ public sealed class OpenIddictQuartzBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictQuartzBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictQuartzBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictQuartzOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict Quartz.NET configuration.
|
|
|
/// Amends the default OpenIddict Quartz.NET configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -29,6 +29,17 @@ public sealed class OpenIddictServerAspNetCoreBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictServerAspNetCoreBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictServerAspNetCoreBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictServerAspNetCoreOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict server ASP.NET Core configuration.
|
|
|
/// Amends the default OpenIddict server ASP.NET Core configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -29,6 +29,17 @@ public sealed class OpenIddictServerDataProtectionBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictServerDataProtectionBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictServerDataProtectionBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictServerDataProtectionOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict server ASP.NET Core Data Protection configuration.
|
|
|
/// Amends the default OpenIddict server ASP.NET Core Data Protection configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -30,6 +30,17 @@ public sealed class OpenIddictServerOwinBuilder |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictServerOwinBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictServerOwinBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictServerOwinOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict server OWIN/Katana configuration.
|
|
|
/// Amends the default OpenIddict server OWIN/Katana configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="configuration">The delegate used to configure the OpenIddict options.</param>
|
|
|
/// <param name="configuration">The delegate used to configure the OpenIddict options.</param>
|
|
|
|
|
|
@ -34,6 +34,17 @@ public sealed class OpenIddictServerBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictServerBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictServerBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictServerOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Registers an event handler using the specified configuration delegate.
|
|
|
/// Registers an event handler using the specified configuration delegate.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -28,6 +28,17 @@ public sealed class OpenIddictValidationAspNetCoreBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictValidationAspNetCoreBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictValidationAspNetCoreBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictValidationAspNetCoreOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict validation ASP.NET Core configuration.
|
|
|
/// Amends the default OpenIddict validation ASP.NET Core configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -29,6 +29,17 @@ public sealed class OpenIddictValidationDataProtectionBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictValidationDataProtectionBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictValidationDataProtectionBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictValidationDataProtectionOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict validation ASP.NET Core Data Protection configuration.
|
|
|
/// Amends the default OpenIddict validation ASP.NET Core Data Protection configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -28,6 +28,17 @@ public sealed class OpenIddictValidationOwinBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictValidationOwinBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictValidationOwinBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictValidationOwinOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict validation OWIN/Katana configuration.
|
|
|
/// Amends the default OpenIddict validation OWIN/Katana configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -27,6 +27,17 @@ public sealed class OpenIddictValidationServerIntegrationBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictValidationServerIntegrationBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictValidationServerIntegrationBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictValidationServerIntegrationOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict validation/server integration configuration.
|
|
|
/// Amends the default OpenIddict validation/server integration configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -32,6 +32,17 @@ public sealed class OpenIddictValidationSystemNetHttpBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictValidationSystemNetHttpBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictValidationSystemNetHttpBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictValidationSystemNetHttpOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Amends the default OpenIddict validation/System.Net.Http configuration.
|
|
|
/// Amends the default OpenIddict validation/System.Net.Http configuration.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|
|
|
@ -33,6 +33,17 @@ public sealed class OpenIddictValidationBuilder |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
[EditorBrowsable(EditorBrowsableState.Never)] |
|
|
public IServiceCollection Services { get; } |
|
|
public IServiceCollection Services { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enables validation of options during application startup.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The <see cref="OpenIddictValidationBuilder"/> instance.</returns>
|
|
|
|
|
|
public OpenIddictValidationBuilder ValidateOnStart() |
|
|
|
|
|
{ |
|
|
|
|
|
Services.AddOptionsWithValidateOnStart<OpenIddictValidationOptions>(); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Registers an event handler using the specified configuration delegate.
|
|
|
/// Registers an event handler using the specified configuration delegate.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|