Javascript SPA, authenticate user with Hello.js social login and validate token from ASPNET5 C# WebApi backend
<p>I'd like to create an application using Angular2 as frontend and the new ASPNET 5 WebApi as backend, but when it comes to authentication/authorisation I feel I'm totally missing the point despite all the reading...</p>

<p>Ideally I'd like to authenticate users using an identity provider such as Google or Facebook using Hello.js, I don't really want to have any sort of local registration for users. And then I'd also like to use an ASPNET 5 WebApi backend to access my database.</p>

<p>This article describes exactly what I want, but not with an ASPNET 5 WebApi backend: <a href="https://ole.michelsen.dk/blog/social-signin-spa-jwt-server.html" rel="nofollow">https://ole.michelsen.dk/blog/social-signin-spa-jwt-server.html</a></p>

<p>I'm not sure I understand the process right:
After receiving an access token from the identity provider, the SPA should send/forward it to the backend for verification. The WebApi backend should validate it against the provider (at least the first time), and create its own token (JWT) to be sent to the SPA. The SPA simply stores it (local store or session store) and the result is that the user is logged into my application.</p>

<p>Is this correct? Is what I want to achieve possible?</p>

<p>I've looked into other options such as OpenIddict, IdentityServer3/4 but as I understand it, I'd be creating my own identity provider using those, and it's not really what I need. Am I misunderstanding?</p>

<p>Thanks. </p>