1
0
mirror of https://github.com/bitwarden/server synced 2025-12-17 16:53:23 +00:00

Duo API and token provider

This commit is contained in:
Kyle Spearrin
2017-06-12 21:22:46 -04:00
parent e0bbd93990
commit 314d591f36
4 changed files with 377 additions and 6 deletions

View File

@@ -107,7 +107,8 @@ namespace Bit.Core.IdentityServer
context.Result = new GrantValidationResult(TokenRequestErrors.InvalidGrant, "Two factor required.",
new Dictionary<string, object>
{
{ "TwoFactorProviders", providers }
{ "TwoFactorProviders", providers },
{ "TwoFactorProvider", (byte)user.TwoFactorProvider.Value }
});
}