I try to create with angularjs based Ionic app an authentication mechanism. The system looks like this:
mobile users are created by administrators on the server. This created mobile user can login into the app.
The users are stored on the server in a JSON object. I had imagined the steps as following?
- The link to the JSON object should be parsed.
- The created users and passwords on the server are to be compared with the locally login data
- If the user has successfully logged into the system, the user data should be stored locally.
Edit:
The flow of the authentication will be effected as follows:
How to create a login system like this programmatically?