From df059dd19deb32dbe86213cbf46175d43b95731c Mon Sep 17 00:00:00 2001 From: Daniel Garnier-Moiroux Date: Tue, 17 Dec 2024 16:31:52 +0100 Subject: [PATCH] tests: fix missing BCFIPS provider in DefaultRelyingPartyRegistrationRepositoryTest --- .../saml/DefaultRelyingPartyRegistrationRepositoryTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/test/java/org/cloudfoundry/identity/uaa/provider/saml/DefaultRelyingPartyRegistrationRepositoryTest.java b/server/src/test/java/org/cloudfoundry/identity/uaa/provider/saml/DefaultRelyingPartyRegistrationRepositoryTest.java index d0a6dac83f9..6358b921990 100644 --- a/server/src/test/java/org/cloudfoundry/identity/uaa/provider/saml/DefaultRelyingPartyRegistrationRepositoryTest.java +++ b/server/src/test/java/org/cloudfoundry/identity/uaa/provider/saml/DefaultRelyingPartyRegistrationRepositoryTest.java @@ -1,5 +1,6 @@ package org.cloudfoundry.identity.uaa.provider.saml; +import org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider; import org.cloudfoundry.identity.uaa.zone.IdentityZone; import org.cloudfoundry.identity.uaa.zone.IdentityZoneConfiguration; import org.cloudfoundry.identity.uaa.zone.IdentityZoneHolder; @@ -13,6 +14,7 @@ import org.springframework.security.saml2.core.Saml2X509Credential; import org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration; +import java.security.Security; import java.util.List; import java.util.Map; @@ -53,6 +55,7 @@ class DefaultRelyingPartyRegistrationRepositoryTest { @BeforeAll public static void beforeAll() { + Security.addProvider(new BouncyCastleFipsProvider()); new IdentityZoneHolder.Initializer(null, new SamlKeyManagerFactory(samlConfigProps)); }