Click here to Skip to main content
15,886,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear expert,

I have made an iPhone web app. I have used html5, java script and jqueryMobile.
My app is consist of single Index.HTML document. Its working fine.

What I want to do is to implement authentication for the same. Since HTML5, java script and even j-Query mobile are client side language, I am failing to communicate with the server.

Traditional classic ASP apparoach, suggest me to go for GET/POST method. But its get failed in my scenario,because the moment I tried to open other page like asp or even another HTML document, it get open in the browser, not in my app.

As you know the web app uses the browser in background, but since its a web app I can't afford to open my next page in browser, it should retain its "native app look".

There is new thing in HTML5, web sql but I don't want to create such database on client side cause any how I have to make hit to server.

I've tried lot of things but couldn't find any way for authentication for html5 app in iPhone from server or client side.


Any body has any idea about it? How to solve this ? How could I add more than one HTML document in single html5 app?
Posted

1 solution

I feel OAuth is the way to go in your case. But look out for other answers too. Refer to this link for a similar discussion - http://stackoverflow.com/questions/10355699/how-do-mobile-html5-apps-use-the-oauth-2-protocol[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900