You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
3.0 KiB
65 lines
3.0 KiB
/*
|
|
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
|
* See https://github.com/openiddict/openiddict-core for more information concerning
|
|
* the license and the contributors participating to this project.
|
|
*/
|
|
|
|
using System;
|
|
|
|
namespace OpenIddict.Core
|
|
{
|
|
/// <summary>
|
|
/// Provides various settings needed to configure the OpenIddict core services.
|
|
/// </summary>
|
|
public class OpenIddictCoreOptions
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the type corresponding to the default Application entity,
|
|
/// used by the non-generic application manager and the server/validation services.
|
|
/// </summary>
|
|
public Type DefaultApplicationType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the type corresponding to the default Authorization entity,
|
|
/// used by the non-generic authorization manager and the server/validation services.
|
|
/// </summary>
|
|
public Type DefaultAuthorizationType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the type corresponding to the default Scope entity,
|
|
/// used by the non-generic scope manager and the server/validation services.
|
|
/// </summary>
|
|
public Type DefaultScopeType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the type corresponding to the default Token entity,
|
|
/// used by the non-generic token manager and the server/validation services.
|
|
/// </summary>
|
|
public Type DefaultTokenType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a boolean indicating whether additional filtering should be disabled,
|
|
/// so that the OpenIddict managers don't execute a second check to ensure the results
|
|
/// returned by the stores exactly match the specified query filters, casing included.
|
|
/// This property SHOULD NOT be set to <c>true</c> except when the underlying stores
|
|
/// are guaranteed to execute case-sensitive filtering at the database level.
|
|
/// Disabling this feature MAY result in security vulnerabilities in the other cases.
|
|
/// </summary>
|
|
public bool DisableAdditionalFiltering { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a boolean indicating whether entity caching should be disabled.
|
|
/// Disabling entity caching may have a noticeable impact on the performance
|
|
/// of your application and result in multiple queries being sent by the stores.
|
|
/// </summary>
|
|
public bool DisableEntityCaching { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the maximum number of cached entries allowed. When the threshold
|
|
/// is reached, the cache is automatically compacted to ensure it doesn't grow
|
|
/// abnormally and doesn't cause a memory starvation or out-of-memory exceptions.
|
|
/// This property is not used when <see cref="DisableEntityCaching"/> is <c>true</c>.
|
|
/// </summary>
|
|
public int EntityCacheLimit { get; set; } = 250;
|
|
}
|
|
}
|