-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
base: main
Are you sure you want to change the base?
Remove RelyingPartyRegistration deprecations #17329
Conversation
There was a problem hiding this 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(), |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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>"; |
There was a problem hiding this comment.
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}"; |
There was a problem hiding this comment.
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?
a3c2ca8
to
d384044
Compare
Thanks for your feedback. I've updated it. |
Signed-off-by: Tran Ngoc Nhan <[email protected]>
Signed-off-by: Tran Ngoc Nhan <[email protected]>
Signed-off-by: Tran Ngoc Nhan <[email protected]>
Signed-off-by: Tran Ngoc Nhan <[email protected]>
66d176f
to
b91034f
Compare
Closes gh-17305