Using Express to hand off request to ADFS server

120 views Asked by At

We're currently running into an issue with authenticating to our on-premise ADFS 3.0 server. We have an Angular app, single page application that has to authenticate with ADFS. We're using an HTTP POST request within the Angular app, but running into CORS issue (naturally as they're not on the same server).

To try and look at it from a different angle, we thought about building a simple Express server, which hosts an API call that we can hit from our Angular/SPA app with a username and password, then the Express server issues the request to ADFS for the authentication. We thought that this would work, as now it's not the browser making the request and get around the CORS issue.

Has anyone got any experience in this and could possibly point me in a useful direction? Are we going down the right path for this?

Thanks, bengrah.

1

There are 1 answers

6
IAfanasov On

seems like you are reinventing Angular proxy