DSA
DSA

Reputation: 780

Authentication between Web App, Web API and Mobile App

I need suggestions for authentication between these three applications (web, API, mobile).

Use Case

Problem Statements

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.

Upvotes: 1

Views: 1473

Answers (1)

Thiago Alonso
Thiago Alonso

Reputation: 51

A simple way to do it would be have your API work with JWT and connect to a database holding your users info. You'd have a route that receives username and password and returns a token. For all the authenticated routes, the request needs this token on the header. For the clients (Web App and Xamarin), you'd store the received token as a cookie and send it together on every API call.

Upvotes: 1

Related Questions