Skip to content

Commit

Permalink
Fix 2fa dictionary on identity response (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin authored Aug 13, 2020
1 parent 783b480 commit 4d8090d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/IdentityServer/BaseRequestValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected async Task BuildSuccessResultAsync(User user, T context, Device device
protected async Task BuildTwoFactorResultAsync(User user, Organization organization, T context)
{
var providerKeys = new List<byte>();
var providers = new Dictionary<byte, Dictionary<string, object>>();
var providers = new Dictionary<string, Dictionary<string, object>>();

var enabledProviders = new List<KeyValuePair<TwoFactorProviderType, TwoFactorProvider>>();
if (organization?.GetTwoFactorProviders() != null)
Expand Down Expand Up @@ -188,7 +188,7 @@ protected async Task BuildTwoFactorResultAsync(User user, Organization organizat
{
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,
Expand Down

0 comments on commit 4d8090d

Please sign in to comment.