Auth API in AspNetCore

#1

I’m trying to create an app which currently contains 3 main parts - the web app, an api for auth/data request and a Db/model project. The user should be able to login through the web app by making an ajax call to the api and later, based on that login, view or store data on the server. And there comes my problem as I’m not sure how to go about the authentication part - should the api return something which will be then used to authorize data access? I will be glad for any help, explanation or tutorial.

.NET Foundation Website | Blog | Projects | Code of Conduct