Enable optional POST redirects#408
Enable optional POST redirects#408andreasonny83 wants to merge 3 commits intoeinaregilsson:masterfrom
Conversation
|
This looks fantastic! Thank you! How well have you tested it so far? |
I'm actually using it at work for mocking the backend API when running the project locally. Since I need to mock both GET and POST requests, I can say this is perfectly working as expected. By default, the POST requests don't get mocked, but as soon as I enable the POST checkbox, everything start working as expected |
Great! Which browser(s) and OS(es) have you tested it on? If you will, please include version numbers. Thanks. |
|
Tested on MacOS against Microsoft Edge v130.0.2849.46 and Chrome v130.0.6723.117 |
|
Thanks. Do you have any other browsers and/or OSes (perhaps via VM) on which you can test? In addition to your existing tests, I'm thinking Firefox, Windows, and Linux tests are needed to cover a good chunk of our user base. |
There was a problem hiding this comment.
Thanks. This looks good and can be merged once #408 is merged and released.
Edit: GitHub UI makes it a bit confusing.. the above code review comment was for a change to the README in relation to POST functionality.
|
Sorry @Gitoffthelawn but I did not get your last comment. This is the PR #408. Are you asking me to take out the Readme update from this PR? That was just added to provide customer's documentation about the added functionality |
No problem. The GitHub UI can be confusing to others for this, and I was trying to clarify (and I clearly failed!). My comment "looks good..." was created when I performed the "code review" for your edit the readme. I was saying it looks good and can be merged once the corresponding code is merged is and release. But the GitHub UI doesn't make that clear, so I tried to clear that up, and I obviously failed in a spectacular fashion! 🤣 But, now that you mention it, maybe my comedic mishap resulted in some good. It may actually be better to separate the PR for the README. Why? Because we don't want to change the README until the code is actually released, not just when it's merged. I may be mistaken (please tell me if I am), but I think if I merge the code now, the updated README will be available now (before the code is released), which will confuse people. |
This reverts commit 7c39f6f.
|
Thanks for the clarification @Gitoffthelawn . |
|
Any update on this one @Gitoffthelawn? Is this PR ready for merge now? |
It just needs testing on Linux & Windows, and on Firefox. Ideally, it will work perfectly. |
Will you cover that testing? I cannot test that at my end unfortunately |
|
Chiming in to confirm this works flawlessly in Firefox ESR 115 packaged with Debian. Tested on Wikipedia previews. |
How about merging into a dev branch? |
|
Any news on this? Would really love to have officially in the extension, can confirm it works on Linux with Firefox Developer Edition (147.0b3) 👍 |
|
@JamesClonk I really wanted POST support for a long time, but I haven't had a use for it in a number of years. Are you (or others) able to publicly post about how you are using POST (minor pun intended)? If it's on private sites, no problem with not providing details. |
|
@Gitoffthelawn We have a bunch of internal web applications that are hosted behind (rather dumb/simplistic) reverse-proxies. And these all have integration with various IdPs (which are also behind said reverse-proxies). So usually we use Redirector to on-the-fly exchange the redirectURIs of the OAuth/OIDC login flow within the browser to URLs pointing to the hostnames of the reverse-proxies instead, as the actual original URLs aren't reachable directly. So lets say for a common web app it's thus 2 Redirector entries, 1 for the web app itself, and 1 for the OIDC IdP. TLDR; SAML IdP doing POST callbacks. 😅 |
|
@JamesClonk Got it. That's a great use of Redirector. Your testing of this PR was as described (2 Redirector entries: 1 for the web app and 1 for the OIDC IdP), and all was good? |
|
@Gitoffthelawn Yes, I'm using a build of this PR in my Firefox dev. When enabling POST in Redirector config then the login flow works with the 2 Redirector entries, and it doesn't when not having enabled POST support. |
|
Possibly dumb question: would a POST redirect by Redirector also hand over the payload? I thought this would be a browser security violation and cannot happen in any case. How would this PR help in the use case "SAML IdP doing POST callbacks"? |
Allow users to optionally enable redirects to POST requests.