After configuring and implementing the JavaScript for ADFS, the authentication process gets stuck in a loop.
The JS request is able to hit the end-point, but a response is not received.
Check ADFS logs for indications of some sort of Proxy intercept. Inbound traffic with the JavaScript must be able to flow from the client and pass through the proxy on the return flight back to the client machine.