1
0
mirror of https://github.com/bitwarden/server synced 2025-12-22 19:23:45 +00:00

Allow SHA1 inbound sigs from Idp (#1047)

This commit is contained in:
Chad Scharf
2020-12-18 11:26:52 -05:00
committed by GitHub
parent fd293dd183
commit 246cac1a33
5 changed files with 20 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ using Bit.Core.Enums;
using Bit.Core.Models.Data;
using Bit.Core.Models.Table;
using Bit.Core.Repositories;
using Bit.Core.Sso;
using Bit.Sso.Models;
using Bit.Sso.Utilities;
using IdentityModel;
@@ -358,6 +359,10 @@ namespace Bit.Core.Business.Sso
AuthenticateRequestSigningBehavior = GetSigningBehavior(config.SpSigningBehavior),
ValidateCertificates = config.SpValidateCertificates,
};
if (!string.IsNullOrWhiteSpace(config.SpMinIncomingSigningAlgorithm))
{
spOptions.MinIncomingSigningAlgorithm = config.SpMinIncomingSigningAlgorithm;
}
if (!string.IsNullOrWhiteSpace(config.SpOutboundSigningAlgorithm))
{
spOptions.OutboundSigningAlgorithm = config.SpOutboundSigningAlgorithm;