Use token authentication and Identity API endpoints in AspNet Core
If you are following previous articles of this series, you are probably comfortable working with Web API and class library projects in VS Code. We will take our example a step further and add authentication to the Web API.
https://www.binaryintellect.net/articles/83e83f1d-d53f-41c0-b7b6-6dd19ff4002b.aspx