-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Allow customization of single logout in auto-configured SAML relying party registration #30128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I wonder why we only made some properties of the |
@ugrave Would that solve your problem? |
This should work for me. There also some other missing: In my case the values are not filled by the IDP because its not supporting IDP initialized logout. |
Hello. |
Yes, see the workaround in the first message. |
Thank you @mhalbritter. |
We can't say for certain at this time. As shown by its milestone, we hope to address this issue in Spring Boot 2.7 but that's not guaranteed. It may have to be deferred until a later milestone if other work takes priority. |
To align with the Single Logout properties in spring:
security:
saml2:
relyingparty:
one:
...
slo:
location: /logout/saml2/slo # RelyingPartyRegistration::singleLogoutServiceLocation
response-location: /logout/saml2/slo # RelyingPartyRegistration::singleLogoutServiceResponseLocation
binding: POST # RelyingPartyRegistration::singleLogoutServiceBinding
identityprovider:
...
singlelogout:
location: ... # RelyingPartyRegistration#AssertingPartyDetails::singleLogoutServiceLocation
response-location: ... # RelyingPartyRegistration#AssertingPartyDetails::singleLogoutServiceResponseLocation
binding: POST # RelyingPartyRegistration#AssertingPartyDetails::singleLogoutServiceBinding The |
Currently a auto configured relying party registration cannot be modified afterwards.
In my case i configured a ssaml single logout url via Spring Security. But i cannot set the configured logout url to autoconfigured
RelyingPartyRegistration.singleLogoutServiceLocation
.I add the
Saml2MetadataFilter
filter together with theOpenSamlMetadataResolver
to make the relying party metadata available.The
OpenSamlMetadataResolver
use the data from theRelyingPartyRegistration
.Problem is know that the logout url is not part of the metadata because its not set in the
RelyingPartyRegistration
.A solution could be to provide a way to customize the autoconfigured
RelyingPartyRegistration
before is is created.Same think as it already exist for the
RestTemplate
with theRestTemplateCustomizer
.My current workaround is to skip the autocinfiguration and create and register the
RelyingPartyRegistration
by myself with my ownRelyingPartyRegistrationRepository
bean.The text was updated successfully, but these errors were encountered: