ReactJs with multiple ASP.NET Web APIs

I have a ReactJs app with a Web API backend. Authentication is handled on the WebAPI side using external login providers (Google, Facebook and custom SAML provider).

After successful authentication, the server receives the request and can retrieve access tokens, claims, etc.

What's the best strategy for communicating between React and WebAPI? If the WebAPI also acts as an oauth server, or if the request with an access token is simply redirected to React so that it can parse the body and retrieve the tokens.

+5


source to share


1 answer


I would suggest using an OpenId Connect server built on your API. it supports multiple external authentication providers and building it on top of OAuth



0


source







All Articles