1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Addressed review comments

Signed-off-by: Liviu Gheorghe <liviu.gheorghe.ro@gmail.com>
This commit is contained in:
1livv
2025-06-07 16:43:12 +03:00
committed by Josh Cummings
parent 358f6c96b5
commit edfd7b9b43
8 changed files with 59 additions and 84 deletions
@@ -371,7 +371,7 @@ public class Saml2LogoutConfigurerTests {
}
@Test
public void saml2LogoutRequestWhenNoRegistrationThen401() throws Exception {
public void saml2LogoutRequestWhenNoRegistrationThen400() throws Exception {
this.spring.register(Saml2LogoutDefaultsConfig.class).autowire();
DefaultSaml2AuthenticatedPrincipal principal = new DefaultSaml2AuthenticatedPrincipal("user",
Collections.emptyMap());
@@ -384,7 +384,7 @@ public class Saml2LogoutConfigurerTests {
.param("SigAlg", this.apLogoutRequestSigAlg)
.param("Signature", this.apLogoutRequestSignature)
.with(authentication(user)))
.andExpect(status().isUnauthorized());
.andExpect(status().isBadRequest());
verifyNoInteractions(getBean(LogoutHandler.class));
}
@@ -271,7 +271,7 @@ public class Saml2LogoutBeanDefinitionParserTests {
}
@Test
public void saml2LogoutRequestWhenNoRegistrationThen401() throws Exception {
public void saml2LogoutRequestWhenNoRegistrationThen400() throws Exception {
this.spring.configLocations(this.xml("Default")).autowire();
DefaultSaml2AuthenticatedPrincipal principal = new DefaultSaml2AuthenticatedPrincipal("user",
Collections.emptyMap());
@@ -284,7 +284,7 @@ public class Saml2LogoutBeanDefinitionParserTests {
.param("SigAlg", this.apLogoutRequestSigAlg)
.param("Signature", this.apLogoutRequestSignature)
.with(authentication(user)))
.andExpect(status().isUnauthorized());
.andExpect(status().isBadRequest());
}
@Test