diff --git a/Demo/TestController.cs b/Demo/TestController.cs index 7c408498..22758728 100644 --- a/Demo/TestController.cs +++ b/Demo/TestController.cs @@ -76,7 +76,7 @@ public OkObjectResult MakeCredentialOptionsTest([FromBody] TEST_MakeCredentialPa AttestationPreference = opts.Attestation, Extensions = exts, // Conformance tools requires RS1, but it's deprecated - PubKeyCredParams = [..PubKeyCredParam.Defaults, PubKeyCredParam.RS1] + PubKeyCredParams = [.. PubKeyCredParam.Defaults, PubKeyCredParam.RS1] }); // 4. Temporarily store options, session/in-memory cache/redis/db diff --git a/Src/Fido2.Models/CredentialCreateOptions.cs b/Src/Fido2.Models/CredentialCreateOptions.cs index 4c380759..91cb362d 100644 --- a/Src/Fido2.Models/CredentialCreateOptions.cs +++ b/Src/Fido2.Models/CredentialCreateOptions.cs @@ -123,8 +123,8 @@ public static CredentialCreateOptions Create( AttestationConveyancePreference attestationConveyancePreference, IReadOnlyList excludeCredentials, AuthenticationExtensionsClientInputs extensions, - IReadOnlyList pubKeyCredParams) - + IReadOnlyList pubKeyCredParams) + { return new CredentialCreateOptions { @@ -183,8 +183,8 @@ public sealed class PubKeyCredParam( public static readonly PubKeyCredParam PS384 = new(COSE.Algorithm.PS384); public static readonly PubKeyCredParam PS512 = new(COSE.Algorithm.PS512); public static readonly PubKeyCredParam Ed25519 = new(COSE.Algorithm.EdDSA); - public static readonly PubKeyCredParam RS1 = new(COSE.Algorithm.RS1); - + public static readonly PubKeyCredParam RS1 = new(COSE.Algorithm.RS1); + /// /// The default algorithms supported by the library ///