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

SAML login fails in Internet Explorer 11 #13106

Closed
stefanraubal opened this issue Apr 27, 2023 · 3 comments
Closed

SAML login fails in Internet Explorer 11 #13106

stefanraubal opened this issue Apr 27, 2023 · 3 comments
Assignees
Labels
in: saml2 An issue in SAML2 modules type: bug A general bug
Milestone

Comments

@stefanraubal
Copy link

SAML login fails in Internet Explorer 11
As a side effect of 00302c8 not only the way the form is submitted changed (from body onload attribute to a script tag) but also the JavaScript language requirements changed due to the (unnecessary) usage of the array function syntax.
This statement could still be written in a way that all currently used browsers can execute it successfully.

As a mostly backend library, Spring Security imho should not have too high browser requirements (and there are still a lot of Enterprise web apps out there that require IE 11 - that's why Microsoft will support it as a mode in Edge until 2028 or so!).

To Reproduce

  • Setup a system with SAML
  • Log in with IE 11 (typically you will need MS Edge and configure the URL to be used in Internet Explorer compatibility mode)
  • Login process will be stuck at attempting to submit form data to identity provider

Expected behavior
No JavaScript error should occur but the form should be submitted correctly to the

Sample
Setting up a test system with SAML should not be a problem for your team. ;)

Thanks a lot for checking this issue and helping us.
Stefan

@stefanraubal stefanraubal added status: waiting-for-triage An issue we've not yet triaged type: bug A general bug labels Apr 27, 2023
@marcusdacoregio
Copy link
Contributor

Hello @stefanraubal, thanks for the report.

I agree that it should not fail with IE 11 since it will be supported by Edge compatibility mode until 2029. However, I changed the tests to use Internet Explorer 11 and they still pass, can you check that sample and see if I'm missing something?

@marcusdacoregio marcusdacoregio self-assigned this Apr 27, 2023
@marcusdacoregio marcusdacoregio added in: saml2 An issue in SAML2 modules and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 27, 2023
@jzheaux jzheaux added the status: waiting-for-feedback We need additional information before we can continue label May 1, 2023
@stefanraubal
Copy link
Author

stefanraubal commented May 4, 2023 via email

@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 May 4, 2023
@marcusdacoregio marcusdacoregio removed the status: feedback-provided Feedback has been provided label May 8, 2023
@marcusdacoregio marcusdacoregio added this to the 5.8.4 milestone May 8, 2023
@marcusdacoregio
Copy link
Contributor

Hi @stefanraubal, I was able to reproduce the behavior consistently manually. I've scheduled the fix for 5.8.4 and 6.0.4.

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: bug A general bug
Projects
Status: Done
Development

No branches or pull requests

4 participants