Skip to content
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

RelyingPartyRegistration should use metadata spec language #8777

Closed
jzheaux opened this issue Jun 29, 2020 · 0 comments
Closed

RelyingPartyRegistration should use metadata spec language #8777

jzheaux opened this issue Jun 29, 2020 · 0 comments
Assignees
Labels
in: saml2 An issue in SAML2 modules type: enhancement A general enhancement
Milestone

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Jun 29, 2020

RelyingPartyRegistration is built as a link between the relying party's metadata and the asserting party's metadata.

As such, it would be clearer if the method names aligned with what is found in the SPSSODescriptor and IDPSSODescriptor schema definitions.

For example, RelyingPartyRegistration.ProviderDetails contains a method called getWebSsoUrl, but this doesn't readily map to anything in the IDPSSODescriptor. It would be clearer to name it getSingleSignOnServiceLocation since this information is located in <SingleSignOnService Location='${LOCATION}'/>.

Additionally, the same inner class contains a method called getBinding, but this also doesn't map to anything in the descriptor. Instead, it would be clearer to name it getSingleSignOnServiceBinding since this information is located in <SingleSignOnService Binding='${BINDING}'/>.

@jzheaux jzheaux added type: enhancement A general enhancement in: saml2 An issue in SAML2 modules labels Jun 29, 2020
@jzheaux jzheaux added this to the 5.4.0-RC1 milestone Jun 29, 2020
@jzheaux jzheaux self-assigned this Jun 29, 2020
jzheaux added a commit to jzheaux/spring-security that referenced this issue Jul 3, 2020
Changed conventions to better follow the metadata descriptors that
the registration is meant to represent.

Closes spring-projectsgh-8777
jzheaux added a commit to jzheaux/spring-security that referenced this issue Jul 3, 2020
Now that the credentials are split, it's a bit cleaner to keep all the details
with RelyingPartyRegistration instead of trying to split them out into different
contructor parameters

Issue spring-projectsgh-8777
jzheaux added a commit to jzheaux/spring-security that referenced this issue Jul 3, 2020
jzheaux added a commit to jzheaux/spring-security that referenced this issue Jul 3, 2020
@jzheaux jzheaux changed the title RelyingPartyRegistration should follow metadata naming conventions RelyingPartyRegistration should use metadata spec language Jul 7, 2020
@jzheaux jzheaux closed this as completed in 8e8a642 Jul 7, 2020
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: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant