Reputation: 1713
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?
Upvotes: 3
Views: 530
Reputation: 25742
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:
Upvotes: 2