-
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
Add Saml2AuthenticationRequestRepository #10060
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 for the PR, @marcusdacoregio!
In addition to the comments, please also add DSL support and docs. At a minimum, the DSL support should look for a bean of type Saml2AuthorizationRequestRepository
and wire it in accordingly.
...springframework/security/saml2/provider/service/authentication/Saml2AuthenticationToken.java
Show resolved
Hide resolved
...security/saml2/provider/service/servlet/HttpSessionSaml2AuthenticationRequestRepository.java
Outdated
Show resolved
Hide resolved
...security/saml2/provider/service/servlet/HttpSessionSaml2AuthenticationRequestRepository.java
Outdated
Show resolved
Hide resolved
...security/saml2/provider/service/servlet/HttpSessionSaml2AuthenticationRequestRepository.java
Outdated
Show resolved
Hide resolved
...security/saml2/provider/service/servlet/HttpSessionSaml2AuthenticationRequestRepository.java
Show resolved
Hide resolved
...ramework/security/saml2/provider/service/servlet/filter/Saml2WebSsoAuthenticationFilter.java
Show resolved
Hide resolved
...g/springframework/security/saml2/provider/service/web/Saml2AuthenticationTokenConverter.java
Outdated
Show resolved
Hide resolved
...g/springframework/security/saml2/provider/service/web/Saml2AuthenticationTokenConverter.java
Outdated
Show resolved
Hide resolved
...rity/saml2/provider/service/servlet/HttpSessionSaml2AuthenticationRequestRepositoryTest.java
Outdated
Show resolved
Hide resolved
...springframework/security/saml2/provider/service/authentication/Saml2AuthenticationToken.java
Outdated
Show resolved
Hide resolved
aa48eab
to
270c10e
Compare
Thanks for your review @jzheaux. I've updated the PR with your suggestions and the DSL and docs addition. |
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, @marcusdacoregio! I've left some additional feedback about the changes you submitted.
...g/springframework/security/config/annotation/web/configurers/saml2/Saml2LoginConfigurer.java
Outdated
Show resolved
Hide resolved
...g/springframework/security/config/annotation/web/configurers/saml2/Saml2LoginConfigurer.java
Outdated
Show resolved
Hide resolved
docs/manual/src/docs/asciidoc/_includes/servlet/saml2/saml2-login.adoc
Outdated
Show resolved
Hide resolved
...springframework/security/saml2/provider/service/authentication/Saml2AuthenticationToken.java
Outdated
Show resolved
Hide resolved
...ramework/security/saml2/provider/service/servlet/filter/Saml2WebSsoAuthenticationFilter.java
Outdated
Show resolved
Hide resolved
...ramework/security/saml2/provider/service/servlet/filter/Saml2WebSsoAuthenticationFilter.java
Outdated
Show resolved
Hide resolved
...g/springframework/security/saml2/provider/service/web/Saml2AuthenticationTokenConverter.java
Outdated
Show resolved
Hide resolved
...g/springframework/security/saml2/provider/service/web/Saml2AuthenticationTokenConverter.java
Outdated
Show resolved
Hide resolved
b39ac5a
to
6945064
Compare
Thanks for your effort on the review @jzheaux. I've updated the PR with your suggestions. |
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, @marcusdacoregio! I've left some additional feedback inline.
...g/springframework/security/config/annotation/web/configurers/saml2/Saml2LoginConfigurer.java
Outdated
Show resolved
Hide resolved
...g/springframework/security/saml2/provider/service/web/Saml2AuthenticationTokenConverter.java
Outdated
Show resolved
Hide resolved
...g/springframework/security/config/annotation/web/configurers/saml2/Saml2LoginConfigurer.java
Show resolved
Hide resolved
Thanks @jzheaux, I've updated the PR based on your feedback. |
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.
Things are really taking shape now, @marcusdacoregio, nice work.
I've left some remaining feedback about JavaDoc, docs, and tests.
...ork/security/saml2/provider/service/servlet/filter/Saml2WebSsoAuthenticationFilterTests.java
Outdated
Show resolved
Hide resolved
...ork/security/saml2/provider/service/servlet/filter/Saml2WebSsoAuthenticationFilterTests.java
Outdated
Show resolved
Hide resolved
...ity/saml2/provider/service/servlet/HttpSessionSaml2AuthenticationRequestRepositoryTests.java
Outdated
Show resolved
Hide resolved
...ity/saml2/provider/service/servlet/HttpSessionSaml2AuthenticationRequestRepositoryTests.java
Outdated
Show resolved
Hide resolved
...gframework/security/saml2/provider/service/servlet/Saml2AuthenticationRequestRepository.java
Outdated
Show resolved
Hide resolved
docs/manual/src/docs/asciidoc/_includes/servlet/saml2/saml2-login.adoc
Outdated
Show resolved
Hide resolved
docs/manual/src/docs/asciidoc/_includes/servlet/saml2/saml2-login.adoc
Outdated
Show resolved
Hide resolved
The tests are getting stuck when running a single test class and the mock is performed in a static variable inside an inner class Issue spring-projectsgh-6025
Thank you again for the review @jzheaux. I've updated the PR. About the docs, I've updated it to use the SAML terms, like |
Thanks, @marcusdacoregio! This is now merged into |
Closes gh-9185
Related #9174