We have developed an ASP.NET MVC 4/Web API single page, mobile website (also using jQuery Mobile) that is intended to be accessed only from mobile devices (e.g., iPads, iPhones, Android tables and phones, etc.), not desktop browsers.  This mobile website will be hosted internally, like an intranet site.  However, since we’re accessing it from mobile devices, we can’t use Windows authentication.  We still need to know which user (and their role) is logging in to the mobile website app.

We tried simply using ASP.NET’s forms authentication and membership provider, but couldn’t get it working exactly the way we wanted.  What we need is for the user to be prompted for a user name and password only on the first time they access the site on their mobile device.  After they enter a correct user name and password and have been authenticated once, each subsequent time they access the site they should just go right in.  They shou ...

Go to the complete details ...