Skip to content

Commit

Permalink
Add back provider keys on TwoFactorProviders response (#4991)
Browse files Browse the repository at this point in the history
(cherry picked from commit b07df10)
  • Loading branch information
trmartin4 committed Nov 6, 2024
1 parent 360b526 commit 6862a9b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public async Task<Dictionary<string, object>> BuildTwoFactorResultAsync(User use

var twoFactorResultDict = new Dictionary<string, object>
{
{ "TwoFactorProviders", null },
{ "TwoFactorProviders2", providers }, // backwards compatibility
{ "TwoFactorProviders", providers.Keys }, // backwards compatibility
{ "TwoFactorProviders2", providers },
};

// If we have email as a 2FA provider, we might need an SsoEmail2fa Session Token
Expand Down

0 comments on commit 6862a9b

Please sign in to comment.