Closed
Description
Describe the bug
When accessing a saml2 relying party's metadata via the Saml2MetadataFilter endpoint, the downloaded metadata.xml file includes a SingeLogoutService element even though I have disabled or not configured saml2 logout.
To Reproduce
- in a WebSecurityConfigurerAdapter, disable saml2 logout: http.saml2Logout().disable()
- configure a saml2 relying party - do not specify any logout configuration for either the relying party or the asserting party.
- configure the saml2 metadata filter
- visit the saml2 metadata url and inspect the downloaded metadata.xml
- notice that the metadata contains a SingleLogoutService element
Expected behavior
If saml2 logout is disabled, then relying party metadata should not advertise a single logout service.