-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Support Determining Max Sessions by Authentication #16218
Conversation
@ClaudenirFreitas Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@ClaudenirFreitas Thank you for signing the Contributor License Agreement! |
web/src/main/java/org/springframework/security/web/session/SessionLimitStrategy.java
Outdated
Show resolved
Hide resolved
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 for such a quick turnaround, @ClaudenirFreitas! I've left my feedback inline.
.../springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java
Outdated
Show resolved
Hide resolved
...work/security/web/authentication/session/ConcurrentSessionControlAuthenticationStrategy.java
Outdated
Show resolved
Hide resolved
config/src/test/java/org/springframework/security/config/doc/XsdDocumentedTests.java
Outdated
Show resolved
Hide resolved
...ngframework/security/config/annotation/web/configurers/SessionManagementConfigurerTests.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/session/SessionLimitStrategy.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/session/SessionLimitStrategy.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/session/SessionLimitStrategy.java
Outdated
Show resolved
Hide resolved
config/src/main/java/org/springframework/security/config/http/HttpConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
thanks a lot, @jzheaux. Meanwhile, I am still working on creating some integration tests to cover the configurations via XML, ok? |
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 for the updates, @ClaudenirFreitas! I've left some additional feedback inline.
Let me know when you have integration tests ready, and I'll take another look.
.../springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java
Outdated
Show resolved
Hide resolved
.../springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java
Outdated
Show resolved
Hide resolved
.../springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java
Outdated
Show resolved
Hide resolved
...work/security/web/authentication/session/ConcurrentSessionControlAuthenticationStrategy.java
Outdated
Show resolved
Hide resolved
config/src/main/java/org/springframework/security/config/http/HttpConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
...onfig/http/HttpHeadersConfigTests-DefaultsSessionManagementConcurrencyControlMaxSessions.xml
Show resolved
Hide resolved
@jzheaux integration tests have been added. Many tests failed due to the new release (6.5). I've updated many files on this commit, and the tests are passing now. Silly question, is this flow correct for the new release? |
@jzheaux |
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.
Just the finishing touches now! Please see my inline feedback.
Also, please squash your commits at this point and format it like so:
Add Max Sessions by Authentication
Closes gh-16206
.../springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java
Outdated
Show resolved
Hide resolved
.../springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java
Outdated
Show resolved
Hide resolved
@jzheaux |
Thanks for asking. We don't prefer to add a merge commit to the history in this case. Do you need help squashing? |
@jzheaux Yes, please. |
Thanks for all your work on this PR, @ClaudenirFreitas! This is now merged into |
Thanks a lot for the help, @jzheaux! We could add a sample using this config in the |
Closes gh-16206