Skip to content

Remove RelyingPartyRegistration deprecations #17329

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ngocnhan-tran1996
Copy link
Contributor

Closes gh-17305

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 22, 2025
Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @ngocnhan-tran1996, this is a big help. I've left my feedback inline.

@@ -48,7 +48,8 @@ public final class OpenSamlRelyingPartyRegistration extends RelyingPartyRegistra
super(registration.getRegistrationId(), registration.getEntityId(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you please remove this class in this PR as well? Please place it in a separate commit so that it can easily be restored in the event that a concern arises.

logoutResponse.setIssuer(issuer);
logoutResponse.setDestination(registration.getSingleLogoutServiceResponseLocation());
return logoutResponse;
}

public static LogoutRequest relyingPartyLogoutRequest(RelyingPartyRegistration registration) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you please remove this in a separate commit?

@@ -184,7 +184,7 @@ public void doFilterWhenRelyingPartyRegistrationRepositoryConstructorAndPathStar
public void doFilterWhenCharacterEncodingThenEncodeSpecialCharactersCorrectly() throws Exception {
RelyingPartyRegistration validRegistration = TestRelyingPartyRegistrations.full().build();
String testMetadataFilename = "test-{registrationId}-metadata.xml";
String generatedMetadata = "<xml>testäöü</xml>";
String generatedMetadata = "<xml>test���</xml>";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change intended? Can we leave it as-is?

@@ -44,7 +44,7 @@
* String registrationId = "simplesamlphp";
*
* String relyingPartyEntityId = "{baseUrl}/saml2/service-provider-metadata/{registrationId}";
* String assertionConsumerServiceLocation = "{baseUrl}/login/saml2/sso/{registrationId}";
* String assertingConsumerServiceLocation = "{baseUrl}/login/saml2/sso/{registrationId}";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the typo cleanups. Will you please place these in a separate commit?

@jzheaux jzheaux self-assigned this Jun 24, 2025
@jzheaux jzheaux added type: enhancement A general enhancement in: saml2 An issue in SAML2 modules type: breaks-passivity A change that breaks passivity with the previous release and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 24, 2025
@jzheaux jzheaux added this to the 7.0.x milestone Jun 24, 2025
@ngocnhan-tran1996 ngocnhan-tran1996 force-pushed the gh-17305 branch 2 times, most recently from a3c2ca8 to d384044 Compare June 24, 2025 19:43
@ngocnhan-tran1996
Copy link
Contributor Author

ngocnhan-tran1996 commented Jun 24, 2025

@jzheaux

Thanks for your feedback. I've updated it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: saml2 An issue in SAML2 modules type: breaks-passivity A change that breaks passivity with the previous release type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove RelyingPartyRegistration deprecations
3 participants