I have a web API created in .net core 1.1. I have used Auth0 to Authenticate it with social logins. The client type chosen is “API’s BETA”. I have another web application created in .net core 1.1 which is using Another Auth0 [ Regular Web Application] to Authenticate social logins.
Is this possible to use the access token created by the web application to be passed as Authorization header and get access to the web api methods?
Thanks, Sendhil
I wrote a post on Auth0 regarding API authentication with JWT tokens on ASP.NET Core and how to create clients using Autorest.
The post has a public GitHub repo with the whole scenario (Web app + API) available.
Basically, you pass along the JWT token and validate it on the API with this on your Startup.cs:
}