So I have an MVC application. Obviously I can not use it with phonegap as phonegap only allows HTML and javascript. So is there a way i can tap into the asp.net RoleProvider and MembershipProvider and create a cookie for the phonegap application so it
has the same logins?
I guess i really should have said, im using asp.net forms auth with custom tables. I guess I could have MVC pass JSON data to the client and create a login cookie with javascript...
But wouldnt it be passing the password over in plain text with just HTML and javascript...
leia
Member
96 Points
87 Posts
PhoneGap and ASP.NET
Mar 24, 2012 03:31 AM|LINK
Really not sure where to put this thread but...
So I have an MVC application. Obviously I can not use it with phonegap as phonegap only allows HTML and javascript. So is there a way i can tap into the asp.net RoleProvider and MembershipProvider and create a cookie for the phonegap application so it has the same logins?
bruce (sqlwo...
All-Star
36850 Points
5445 Posts
Re: PhoneGap and ASP.NET
Mar 24, 2012 05:39 AM|LINK
you can call MVC json actions from your phonegap javascript, or use the new web api library.
ramankashyap
Member
178 Points
43 Posts
Re: PhoneGap and ASP.NET
Mar 24, 2012 12:18 PM|LINK
PhoneGap is a client api. You can make ajax calls from PoneGap app to MVC action methods.
leia
Member
96 Points
87 Posts
Re: PhoneGap and ASP.NET
Mar 24, 2012 03:32 PM|LINK
I guess i really should have said, im using asp.net forms auth with custom tables. I guess I could have MVC pass JSON data to the client and create a login cookie with javascript...
But wouldnt it be passing the password over in plain text with just HTML and javascript...