|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright 2002-2021 the original author or authors.
|
|
|
+ * Copyright 2002-2022 the original author or authors.
|
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
@@ -97,6 +97,9 @@ public class Saml2RelyingPartyInitiatedLogoutSuccessHandlerTests {
|
|
|
String content = response.getContentAsString();
|
|
|
assertThat(content).contains(Saml2ParameterNames.SAML_REQUEST);
|
|
|
assertThat(content).contains(registration.getAssertingPartyDetails().getSingleLogoutServiceLocation());
|
|
|
+ assertThat(content).contains(
|
|
|
+ "<meta http-equiv=\"Content-Security-Policy\" content=\"script-src 'sha256-ePniVEkSivX/c7XWBGafqh8tSpiRrKiqYeqbG7N1TOE='\">");
|
|
|
+ assertThat(content).contains("<body onload=\"document.forms[0].submit()\">");
|
|
|
}
|
|
|
|
|
|
private Saml2Authentication authentication(RelyingPartyRegistration registration) {
|