-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Support configuration of protocol binding for authentication requests #7516
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
Conversation
Awesome @blucas Can you add a test case to your pull request, you can use this one so you get familiar with our style: The naming convention for methods is
|
@fhanik - I didn't add a test as I wasn't convinced this approach was the best solution to the problem. Do you have any thoughts around exposing the |
@fhanik - I've added the test and fixed the failure. Please consider my proposal around exposing the |
Hi @blucas , I've spent some time thinking about this. And the different options as you noted are
The further down the list we reach, the broader the impact it has on the overall codebase. Then I started thinking about the use case. It is my belief that I believe that option 1 and 2 are both sufficient. I believe going further down the list, why it may seem flexible, it's a lot of work for very little gain. Specially if we don't see this value change frequently. So I'm thinking a minimalist approach for the sake of simplicity and not creating an overarching configuration base. What are your thoughts? Am I missing something ? |
@fhanik I completely agree with everything you said. I do believe I feel like the The reason I mention exposing it further (3 and 4 above) is it feels more like the "spring way" of doing things. Plus is provides more specific configuration (one RPR could use In summary. I believe the approach of this PR is enough. Any further configuration requests could be handled at a later date. |
...ork/security/saml2/provider/service/authentication/OpenSamlAuthenticationRequestFactory.java
Show resolved
Hide resolved
...ecurity/saml2/provider/service/authentication/OpenSamlAuthenticationRequestFactoryTests.java
Outdated
Show resolved
Hide resolved
Thank @blucas , I'll check out the CI failures tomorrow |
@fhanik - I'm not too sure why the build is failing, I haven't touched CAS code... thanks for looking into it for me. |
Fixes gh-7513.
Note: This is not intended as the final solution, but as a starting point for discussion. I believe a better solution may be to add
protocolBinding
toSaml2AuthenticationRequest
andRelyingPartyRegistration
. But I'd like to hear feedback on that approach before submitting any code.@fhanik FYI.