Skip to content

Commit 8918a6c

Browse files
committed
Conformance fixes for v2.
1 parent c4a0582 commit 8918a6c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Src/Fido2.Models/Metadata/MetadataTOCPayload.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class MetadataTOCPayload
4040
/// <summary>
4141
/// The "alg" property from the original JWT header. Used to validate MetadataStatements.
4242
/// </summary>
43-
[JsonProperty("jwtAlg", Required = Required.AllowNull)]
43+
[JsonProperty("jwtAlg", Required = Required.Default)]
4444
public string JwtAlg { get; set; }
4545
}
4646
}

Src/Fido2/Metadata/ConformanceMetadataRepository.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.IdentityModel.Tokens.Jwt;
44
using System.Linq;
@@ -102,6 +102,7 @@ public async Task<MetadataTOCPayload> GetToc()
102102
{
103103
entries.Add(entry);
104104
}
105+
combinedToc.JwtAlg = toc.JwtAlg;
105106
}
106107

107108
combinedToc.Entries = entries.ToArray();

0 commit comments

Comments
 (0)