Skip to content

Commit b81fbf0

Browse files
committed
Merge branch '5.7.x' into 5.8.x
Closes gh-12209
2 parents a3d2783 + 79483b2 commit b81fbf0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/provider/service/authentication/logout/OpenSamlLogoutRequestValidator.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private Consumer<Collection<Saml2Error>> validateIssuer(LogoutRequest request,
128128
RelyingPartyRegistration registration) {
129129
return (errors) -> {
130130
if (request.getIssuer() == null) {
131-
errors.add(new Saml2Error(Saml2ErrorCodes.INVALID_ISSUER, "Failed to find issuer in LogoutResponse"));
131+
errors.add(new Saml2Error(Saml2ErrorCodes.INVALID_ISSUER, "Failed to find issuer in LogoutRequest"));
132132
return;
133133
}
134134
String issuer = request.getIssuer().getValue();
@@ -144,7 +144,7 @@ private Consumer<Collection<Saml2Error>> validateDestination(LogoutRequest reque
144144
return (errors) -> {
145145
if (request.getDestination() == null) {
146146
errors.add(new Saml2Error(Saml2ErrorCodes.INVALID_DESTINATION,
147-
"Failed to find destination in LogoutResponse"));
147+
"Failed to find destination in LogoutRequest"));
148148
return;
149149
}
150150
String destination = request.getDestination();

saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/provider/service/web/authentication/logout/Saml2LogoutResponseFilter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
114114
logoutRequest.getRelyingPartyRegistrationId());
115115
if (registration == null) {
116116
this.logger
117-
.trace("Did not process logout request since failed to find associated RelyingPartyRegistration");
117+
.trace("Did not process logout response since failed to find associated RelyingPartyRegistration");
118118
Saml2Error error = new Saml2Error(Saml2ErrorCodes.RELYING_PARTY_REGISTRATION_NOT_FOUND,
119119
"Failed to find associated RelyingPartyRegistration");
120120
response.sendError(HttpServletResponse.SC_BAD_REQUEST, error.toString());

0 commit comments

Comments
 (0)