I need suggestions for authentication between these three applications (web, API, mobile).
Use Case
- I have .Net Core Web API which works with basic authentication (i.e. username and password in header).
- I need to consume that API in my .Net Core Web App and Xamarin mobile app.
- I want to integrate security model between all three applications.
Problem Statements
- I don't have knowledge about how the same authentication can work for Web App and API.
- I don't want to use any third-party authentication provider. I would like to have my users in database only.
- What is best way to secure my API?
- Once I secure my Web API, How about authentication on Web App and Mobile App?
I know this is a broad question but simplest answer/way will help me to decide further path. I have enough knowledge about authentication like AD, OAuth, Open Connect, JWT But honestly not sure how to use it in my scenario.