From c39328688b6f98d9e8f8f9e89b21fa099938af1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Mon, 18 Nov 2024 17:51:34 +0100 Subject: [PATCH] Explain EnableRelaxedDecoding (#578) --- Src/Fido2.Models/Converters/Base64UrlConverter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Src/Fido2.Models/Converters/Base64UrlConverter.cs b/Src/Fido2.Models/Converters/Base64UrlConverter.cs index 0c2d40ff..e67bab25 100644 --- a/Src/Fido2.Models/Converters/Base64UrlConverter.cs +++ b/Src/Fido2.Models/Converters/Base64UrlConverter.cs @@ -12,6 +12,9 @@ namespace Fido2NetLib; /// public sealed class Base64UrlConverter : JsonConverter { + /// + /// If set to true, the converter will attempt to decode Base64 encoding if Base64Url decoding fails. Intended for fallback purposes only and should be used temporarily. + /// public static bool EnableRelaxedDecoding { get; set; } public override byte[] Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)