Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

We’ve implemented authentication in a global middleware file named “init.js”. It’s quite simple: it first checks to see if a specific cookie has been created; if not, it sends the user to a SAML IdP server for authentication. Once authenticated, the IdP does an HTTP POST back to an endpoint on our application. The issue is that, for anything but localhost, invoking an API causes the middleware to fire and we get stuck in this loop between our app and the IdP. For example, if you call invoke our Nuxt app’s API from Postman on localhost, the middleware doesn’t fire but if you invoke it using the URL it does, which causes the issue.
Suggestions? Did we implement it incorrectly?
James Wood
Shane Corn
Faizan Younas Tanooli
clea-peixoto
StrugglingDeveloper
Hamza kholti
Charley Kiser
31294f7ccf774ac7b3508a6438b989
Matthew Narrell
hello