1
0
mirror of synced 2026-08-06 02:08:01 +00:00

Replace Apache Commons Base64 Decoding

Issue gh-10923
This commit is contained in:
Josh Cummings
2022-03-01 15:02:32 -07:00
parent 0ae6e6e767
commit 040a28a8c9
4 changed files with 15 additions and 15 deletions
@@ -223,7 +223,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);