mirror of
https://github.com/bitwarden/server.git
synced 2024-12-26 17:37:36 +01:00
Fix organization duo 2fa not working due to switch to System.Text.Json (#1846)
This commit is contained in:
parent
cecf052b33
commit
2ed8be75dd
@ -44,8 +44,8 @@ namespace Bit.Core.Identity
|
|||||||
return Task.FromResult<string>(null);
|
return Task.FromResult<string>(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
var signatureRequest = DuoWeb.SignRequest((string)provider.MetaData["IKey"],
|
var signatureRequest = DuoWeb.SignRequest(provider.MetaData["IKey"].ToString(),
|
||||||
(string)provider.MetaData["SKey"], _globalSettings.Duo.AKey, user.Email);
|
provider.MetaData["SKey"].ToString(), _globalSettings.Duo.AKey, user.Email);
|
||||||
return Task.FromResult(signatureRequest);
|
return Task.FromResult(signatureRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,8 +62,8 @@ namespace Bit.Core.Identity
|
|||||||
return Task.FromResult(false);
|
return Task.FromResult(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
var response = DuoWeb.VerifyResponse((string)provider.MetaData["IKey"],
|
var response = DuoWeb.VerifyResponse(provider.MetaData["IKey"].ToString(),
|
||||||
(string)provider.MetaData["SKey"], _globalSettings.Duo.AKey, token);
|
provider.MetaData["SKey"].ToString(), _globalSettings.Duo.AKey, token);
|
||||||
|
|
||||||
return Task.FromResult(response == user.Email);
|
return Task.FromResult(response == user.Email);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user