mirror of
https://github.com/bitwarden/server
synced 2025-12-22 19:23:45 +00:00
Remove the u2f lib (#1820)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Text.Json;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Bit.Core.Entities;
|
||||
@@ -25,7 +24,6 @@ using Microsoft.IdentityModel.Tokens;
|
||||
using Sustainsys.Saml2.AspNetCore2;
|
||||
using Sustainsys.Saml2.Configuration;
|
||||
using Sustainsys.Saml2.Saml2P;
|
||||
using U2F.Core.Utils;
|
||||
|
||||
namespace Bit.Core.Business.Sso
|
||||
{
|
||||
@@ -412,7 +410,7 @@ namespace Bit.Core.Business.Sso
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(config.IdpX509PublicCert))
|
||||
{
|
||||
var cert = config.IdpX509PublicCert.Base64StringToByteArray();
|
||||
var cert = CoreHelpers.Base64UrlDecode(config.IdpX509PublicCert);
|
||||
idp.SigningKeys.AddConfiguredKey(new X509Certificate2(cert));
|
||||
}
|
||||
// This must happen last since it calls Validate() internally.
|
||||
|
||||
Reference in New Issue
Block a user