Victor Johansson
Posts: 0
Joined: Mon Oct 08, 2012 5:30 pm

Security to my mobile web app

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!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Security to my mobile web app

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.

Victor Johansson
Posts: 0
Joined: Mon Oct 08, 2012 5:30 pm

Security to my mobile web app

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Security to my mobile web app

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.

Victor Johansson
Posts: 0
Joined: Mon Oct 08, 2012 5:30 pm

Security to my mobile web app

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Security to my mobile web app

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.

Matthew G. Monteleone
Posts: 0
Joined: Tue Oct 13, 2015 11:37 pm

Security to my mobile web app

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Security to my mobile web app

Hello Matthew,

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

Matthew G. Monteleone
Posts: 0
Joined: Tue Oct 13, 2015 11:37 pm

Security to my mobile web app

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Security to my mobile web app

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

Return to “Issues”