Replace Apache Commons Base64 Decoding

Issue gh-10923
This commit is contained in:
Josh Cummings
2022-03-01 15:02:32 -07:00
parent 238616da80
commit 7a02bd14c1
5 changed files with 17 additions and 21 deletions

View File

@@ -293,7 +293,7 @@ public class Saml2LoginConfigurerTests {
public void authenticateWithInvalidDeflatedSAMLResponseThenFailureHandlerUses() throws Exception {
this.spring.register(CustomAuthenticationFailureHandler.class).autowire();
byte[] invalidDeflated = "invalid".getBytes();
String encoded = Saml2Utils.samlEncode(invalidDeflated);
String encoded = Saml2Utils.samlEncodeNotRfc2045(invalidDeflated);
MockHttpServletRequestBuilder request = get("/login/saml2/sso/registration-id").queryParam("SAMLResponse",
encoded);
this.mvc.perform(request);