From 4d8090d75ea21a64225898166bb9d54cfead05b5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 13 Aug 2020 16:04:50 -0400 Subject: [PATCH] Fix 2fa dictionary on identity response (#863) --- src/Core/IdentityServer/BaseRequestValidator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/IdentityServer/BaseRequestValidator.cs b/src/Core/IdentityServer/BaseRequestValidator.cs index 806fd5e5a2..e67993d7cd 100644 --- a/src/Core/IdentityServer/BaseRequestValidator.cs +++ b/src/Core/IdentityServer/BaseRequestValidator.cs @@ -158,7 +158,7 @@ namespace Bit.Core.IdentityServer protected async Task BuildTwoFactorResultAsync(User user, Organization organization, T context) { var providerKeys = new List(); - var providers = new Dictionary>(); + var providers = new Dictionary>(); var enabledProviders = new List>(); if (organization?.GetTwoFactorProviders() != null) @@ -188,7 +188,7 @@ namespace Bit.Core.IdentityServer { providerKeys.Add((byte)provider.Key); var infoDict = await BuildTwoFactorParams(organization, user, provider.Key, provider.Value); - providers.Add((byte)provider.Key, infoDict); + providers.Add(((byte)provider.Key).ToString(), infoDict); } SetTwoFactorResult(context,