You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return new Saml2AssertingPartyInitiatedLogoutSuccessHandler(logoutResponseResolver);
1183
+
return new Saml2ResponseLogoutSuccessHandler(logoutResponseResolver);
1189
1184
}
1190
1185
----
1191
1186
<1> - First, add your signing key to the `RelyingPartyRegistration` instance or to <<servlet-saml2login-rpr-duplicated,multiple instances>>
@@ -1212,40 +1207,26 @@ In the event that you need to support both logout flows, you can combine the abo
1212
1207
1213
1208
There are two default endpoints that Spring Security's SAML 2.0 Single Logout support exposes:
1214
1209
* `/saml2/logout` - the endpoint for initiating single logout with an asserting party
1215
-
* `/logout` - the endpoint for receiving logout requests and responses from an asserting party
1210
+
* `/logout/saml2` - the endpoint for receiving logout requests and responses from an asserting party
1216
1211
1217
1212
Because the user is already logged in, the `registrationId` is already known.
1218
1213
For this reason, `+{registrationId}+` is not part of these URLs by default.
1219
1214
1220
1215
The first URL is not customizable at this point since this is not a URL that gets configured with the asserting party.
1221
1216
As such the need to customize this endpoint is minimal, though this can be added to the support down the road.
1222
1217
1223
-
The second URL is customizable through Spring Security's <<jc-logout,general-purpose logout support>>.
1218
+
The second URL is customizable in the `Saml2LogoutFilter`.
1224
1219
1225
1220
For example, if you are migrating your existing relying party over to Spring Security, your asserting party may already be pointing to `GET /SLOService.saml2`.
1226
1221
To reduce changes in configuration for the asserting party, you can configure `logout` in the DSL like so:
1227
1222
1228
1223
[source,java]
1229
1224
----
1225
+
Saml2LogoutFilter filter = new Saml2LogoutFilter(logoutSuccessHandler, logoutHandler);
Copy file name to clipboardExpand all lines: saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/provider/service/registration/RelyingPartyRegistration.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1004,9 +1004,9 @@ public static final class Builder {
Copy file name to clipboardExpand all lines: saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/provider/service/web/authentication/logout/Saml2LogoutRequestFilter.java
Copy file name to clipboardExpand all lines: saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/provider/service/web/authentication/logout/Saml2ResponseLogoutSuccessHandler.java
Copy file name to clipboardExpand all lines: saml2/saml2-service-provider/src/test/java/org/springframework/security/saml2/provider/service/web/DefaultRelyingPartyRegistrationResolverTests.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -52,8 +52,8 @@ public void resolveWhenRequestContainsRegistrationIdThenResolves() {
0 commit comments