0

I'm trying to use ITFoxtec to login SAML2 using backend .net core (port 5000) and angular client (port 4200). Note that Both have different ports. When I call the controller Login method from Angular Client to read the SAML config and redirect(302) the request to my identity server to login (as the example https://github.com/ITfoxtec/ITfoxtec.Identity.Saml2/tree/master/src/ITfoxtec.Identity.Saml2.MvcCore), I'm having cors issues. Is this error because the requested server doesn´t have cors enabled? I've tested it with blazor where the backend and client are the same ports and it works fine. Any help? Thanks!

error here

JonesOne
  • 11
  • 3
  • 1
    CORS requests only apply to browsers. Blazor requests originate from your server, not the users browser. –  Feb 10 '21 at 15:18
  • Yes, you are right, but once it has been called by the server, how Chrome can record this call on the network tab? – JonesOne Feb 10 '21 at 17:28
  • It won't, the request wasn't made by the browser. –  Feb 10 '21 at 23:02
  • ITfoxtec Identity SAML2 only support server based login and not JS client based like an Angular Client. You need to handle the login flow in the backend and use another mechanism to secure the JS client. – Anders Revsgaard Feb 11 '21 at 08:21
  • I really don't understand how the user will type the credentials with the login flow in the backend once the idp needs to open the browser for that. – JonesOne Feb 12 '21 at 13:25

0 Answers0