Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery Mobile + WebApi + PhoneGap

I am about to create a JQM + WebAPI + PhoneGap solution. But I am not sure how to handle the authorization part given that webapi is not designed to support session state.

I can use an ajax call to the webapi to complete the login process but then how do we know if a user is logged in on subsequent requests from the client? Do we attach the userId in the HTTP header of each page? If so, how do we do this in an efficient manner?

like image 339
su8898 Avatar asked Feb 26 '26 02:02

su8898


1 Answers

Web API ample of options for user authentication and authorization. Watch this video by Dominick Baier to get a sense of options that you have:

  • Securing ASP.NET Web APIs
like image 72
Teoman Soygul Avatar answered Feb 28 '26 16:02

Teoman Soygul