Skip to content

Support configuration of localEntityIdTemplate for a SAML Relying Party #22258

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

Closed
wants to merge 2 commits into from

Conversation

danilopiazza
Copy link
Contributor

Hi, this PR fixes #20352 by adding support for auto-configuring RelyingPartyRegistration.localEntityIdTemplate.

Support for the new property has been added to the top-level Registration class, as suggested by @mbhave in #20352 (comment).

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 7, 2020
@wilkinsona wilkinsona added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 15, 2020
@wilkinsona wilkinsona added this to the 2.4.x milestone Jul 15, 2020
Copy link
Member

@wilkinsona wilkinsona left a comment

Choose a reason for hiding this comment

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

Thanks very much for the PR, @danilopiazza. I left a few comments. When you have a moment, please take a look and let us know what you think.

@wilkinsona wilkinsona added the status: waiting-for-feedback We need additional information before we can continue label Jul 15, 2020
@danilopiazza
Copy link
Contributor Author

@wilkinsona localEntityIdTemplate is going to be deprecated in Spring Security 5.4 in favour of entityId: spring-projects/spring-security@8e8a642.

Should I update this PR to use the new property (possibly changing the configuration property name from local-entity-id-template to relying-party-entity-id), or is 2.4.x going to be compatible with Spring Security 5.3?

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jul 17, 2020
@wilkinsona
Copy link
Member

Thanks for joining the dots there, @danilopiazza. Spring Boot 2.4 will require Spring Security 5.4 so let's switch to relying-party-entity-id please.

@danilopiazza danilopiazza requested a review from wilkinsona July 18, 2020 07:58
@danilopiazza
Copy link
Contributor Author

Thanks for joining the dots there, @danilopiazza. Spring Boot 2.4 will require Spring Security 5.4 so let's switch to relying-party-entity-id please.

I am still calling RelyingPartyRegistration#getLocalEntityIdTemplate and RelyingPartyRegistration.Builder#localEntityIdTemplate because current master depends on Spring Security 5.4.0-M1, where the new methods are not available yet.

(As a side note: should I open another PR after rebasing on current master and squashing commits?)

@wilkinsona
Copy link
Member

current master depends on Spring Security 5.4.0-M1

Please feel free to switch to 5.4.0-SNAPSHOT in this PR. 5.4.0-RC1 will be released in time for Spring Boot 2.4.0-M2 so we can switch to snapshots now and then pick up RC1 when it's released.

should I open another PR after rebasing on current master and squashing commits?

No need for another PR, thanks. You can just force-push this one.

@danilopiazza
Copy link
Contributor Author

No need for another PR, thanks. You can just force-push this one.

Done! I force-pushed two separate commits: one to upgrade the Spring Security dependency, and another one with the PR changes.

@snicoll snicoll self-assigned this Aug 5, 2020
@snicoll snicoll removed the status: feedback-provided Feedback has been provided label Aug 5, 2020
@snicoll snicoll modified the milestones: 2.4.x, 2.4.0-M2 Aug 5, 2020
@snicoll snicoll closed this in b476bf8 Aug 5, 2020
@snicoll
Copy link
Member

snicoll commented Aug 5, 2020

@danilopiazza thank you very much for making your first contribution to Spring Boot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support configuration of localEntityIdTemplate for a SAML Relying Party
4 participants