Wednesday, 15 July 2015

cordova - Authentication in HTML5 + phonegap application -



cordova - Authentication in HTML5 + phonegap application -

i'm building application on html5 + jquery , rest services @ back-end . application meant desktop users , mobile users. building mobile version using phonegap. application secure application , needs login screen. in prepare how can accomplish this. 1. if move application asp.net mvc can't create build using phonegap. 2. phonegap found http://www.raymondcamden.com/index.cfm/2011/11/10/example-of-serverbased-login-with-phonegap think not suitable solution desktop users

you can secure server side using authentication technology of selection , create ajax calls rest services pass along credentials.

for example, if wanted write service using asp.net mvc, protect using simple http basic auth , pass along user/pass string in request.

to accomplish login screen, can write dummy controller method login screen can phone call check if authentication working.

if want sample asp.net mvc backend phonegap front-end using jquery, have sample code on github , blog describing building application

html5 cordova

No comments:

Post a Comment