part #2
This commit is contained in:
@@ -5,7 +5,7 @@ namespace StellaOps.Cryptography.Kms;
|
||||
/// </summary>
|
||||
public sealed class Fido2Options
|
||||
{
|
||||
private TimeSpan metadataCacheDuration = TimeSpan.FromMinutes(5);
|
||||
private TimeSpan _metadataCacheDuration = TimeSpan.FromMinutes(5);
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the relying party identifier (rpId) used when registering the credential.
|
||||
@@ -33,13 +33,8 @@ public sealed class Fido2Options
|
||||
/// </summary>
|
||||
public TimeSpan MetadataCacheDuration
|
||||
{
|
||||
get => metadataCacheDuration;
|
||||
set => metadataCacheDuration = value <= TimeSpan.Zero ? TimeSpan.FromMinutes(5) : value;
|
||||
get => _metadataCacheDuration;
|
||||
set => _metadataCacheDuration = value <= TimeSpan.Zero ? TimeSpan.FromMinutes(5) : value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an optional authenticator factory hook (mainly for testing or custom integrations).
|
||||
/// </summary>
|
||||
public Func<IServiceProvider, IFido2Authenticator>? AuthenticatorFactory { get; set; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user