Skip to content

Commit b3fdd00

Browse files
committed
Merge branch '5.8.x'
Closes gh-12210
2 parents 08948f2 + b81fbf0 commit b3fdd00

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
@@ -113,7 +113,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
113113
logoutRequest.getRelyingPartyRegistrationId());
114114
if (registration == null) {
115115
this.logger
116-
.trace("Did not process logout request since failed to find associated RelyingPartyRegistration");
116+
.trace("Did not process logout response since failed to find associated RelyingPartyRegistration");
117117
Saml2Error error = new Saml2Error(Saml2ErrorCodes.RELYING_PARTY_REGISTRATION_NOT_FOUND,
118118
"Failed to find associated RelyingPartyRegistration");
119119
response.sendError(HttpServletResponse.SC_BAD_REQUEST, error.toString());

0 commit comments

Comments
 (0)