Page 1 of 1

Security to my mobile web app

Posted: Mon Oct 08, 2012 5:30 pm
by Victor Johansson

Hello.
I want to build a mobile web app with login. I want to just login once and then get a token. I want only those who have logged in to gain access to additional pages in the app. Can you please describe what you would do in my case? Thanks in advance!


Security to my mobile web app

Posted: Mon Oct 08, 2012 9:18 pm
by maxkatz

You can use Tiggzi database, it has a built-in user management that allows you to register and login users. Once a user is signed in, you get a user token. As for gaining access, if the login fails - you can display an error message.


Security to my mobile web app

Posted: Tue Oct 09, 2012 1:43 pm
by Victor Johansson

I have now a fully working form with login connected to my users in my database. But still anyone can type in the url to any different page on my website and still see the content. How to provide people to see my other pages?


Security to my mobile web app

Posted: Tue Oct 09, 2012 4:38 pm
by maxkatz

You could keep some sort of a token in the local storage. If it exists, then the user can see the page, if not, the user is redirected to login/register page.


Security to my mobile web app

Posted: Tue Oct 09, 2012 4:40 pm
by Victor Johansson

okey. great! just what I want! Did You've got some good tutorial or guide on this?


Security to my mobile web app

Posted: Tue Oct 09, 2012 4:44 pm
by maxkatz

Not specifically for that. As long as you got the services working, know how to use browser's local storage API, you should be able to implement it without problems.


Security to my mobile web app

Posted: Tue Oct 13, 2015 11:55 pm
by Matthew G. Monteleone

Do you now perhaps have a tutorial, or example code for how to secure pages using tokens?


Security to my mobile web app

Posted: Wed Oct 14, 2015 1:19 pm
by Serhii Kulibaba

Hello Matthew,

Please look this tutorial: https://devcenter.appery.io/documenta...


Security to my mobile web app

Posted: Thu Oct 15, 2015 6:45 am
by Matthew G. Monteleone

That would be security for REST services, what I was looking for is what is mentioned in this thread, securing each page of the app.


Security to my mobile web app

Posted: Thu Oct 15, 2015 7:25 am
by Illya Stepanov

If the question is: do we have such tutorial - no we don't have.