Small question regarding Spring Security 2.5.0 please.
Used to have a Spring Boot + Spring Security project at 2.1.0.
Now I did the upgrade, bumped up to Spring Boot 2.5.0 + spring-security-saml2-service-provider 5.5.0
Business logics working fine, we are using this for SAML authentication, no issues.
A snippet we have is:
//local signing (and decryption key)
Saml2X509Credential signingCredential = getSigningCredential();
//IDP certificate for verification of incoming messages
Saml2X509Credential idpVerificationCertificate = getVerificationCertificate();
String acsUrlTemplate = "{baseUrl}" + Saml2WebSsoAuthenticationFilter.DEFAULT_FILTER_PROCESSES_URI;
return RelyingPartyRegistration.withRegistrationId(registrationId)
.remoteIdpEntityId(idpEntityId)
.idpWebSsoUrl(webSsoEndpoint)
.credentials(c -> c.add(signingCredential))
.credentials(c -> c.add(idpVerificationCertificate))
.localEntityIdTemplate(localEntityIdTemplate)
.assertionConsumerServiceUrlTemplate(acsUrlTemplate)
.build();
Again, working quite well.
We bumped the project up to the latest (as of time of this writing) 2.5.0, and saw deprecation in most of the lines of the snippet.
Tried to look in Spring Security 5.5.0, where it recommends to use assertionConsumerServiceLocation instead.
But I am having a hard time understanding, what is the string replacing everything?
return RelyingPartyRegistration.withRegistrationId(registrationId).assertionConsumerServiceLocation("what comes here?").build();
Any help please?