Class OpenIddictValidationDataProtectionBuilder
Exposes the necessary methods required to configure the OpenIddict ASP.NET Core Data Protection integration.
Inheritance
System.Object
OpenIddictValidationDataProtectionBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: cs.temp.dll.dll
Syntax
public class OpenIddictValidationDataProtectionBuilder
Constructors
OpenIddictValidationDataProtectionBuilder(IServiceCollection)
Initializes a new instance of OpenIddictValidationDataProtectionBuilder.
Declaration
public OpenIddictValidationDataProtectionBuilder(IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The services collection. |
Methods
Configure(Action<OpenIddictValidationDataProtectionOptions>)
Amends the default OpenIddict validation ASP.NET Core Data Protection configuration.
Declaration
public OpenIddictValidationDataProtectionBuilder Configure(Action<OpenIddictValidationDataProtectionOptions> configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<OpenIddictValidationDataProtectionOptions> | configuration | The delegate used to configure the OpenIddict options. |
Returns
| Type | Description |
|---|---|
| OpenIddictValidationDataProtectionBuilder |
Remarks
This extension can be safely called multiple times.
UseDataProtectionProvider(IDataProtectionProvider)
Configures OpenIddict to use a specific data protection provider instead of relying on the default instance provided by the DI container.
Declaration
public OpenIddictValidationDataProtectionBuilder UseDataProtectionProvider(IDataProtectionProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataProtectionProvider | provider | The data protection provider used to create token protectors. |
Returns
| Type | Description |
|---|---|
| OpenIddictValidationDataProtectionBuilder |
UseFormatter(IOpenIddictValidationDataProtectionFormatter)
Configures OpenIddict to use a specific formatter instead of relying on the default instance.
Declaration
public OpenIddictValidationDataProtectionBuilder UseFormatter(IOpenIddictValidationDataProtectionFormatter formatter)
Parameters
| Type | Name | Description |
|---|---|---|
| IOpenIddictValidationDataProtectionFormatter | formatter | The formatter used to read tokens. |
Returns
| Type | Description |
|---|---|
| OpenIddictValidationDataProtectionBuilder |