As a novice in the world of angularjs...
After going through the documentation and completing a tutorial, I decided to experiment on my own which has helped me grasp things better.
Now, I'm looking into creating a secure authentication system.
The process is quite simple: I will outline the operations that my code will carry out:
I have a basic form with fields for username and password input.
Once the user enters their details and hits ENTER,
An ajax request is triggered, and based on the response JSON received, I can determine if the user is recognized or not.
What I aim to achieve now is to maintain the logged-in state of the visitor across different views of the application.
While researching online, I found examples where some set a variable ($scope.isLogged = true) while others used cookies. However, both javascript variables and cookies are vulnerable to manipulation using tools like firebug.
...and now, onto the main question:
Therefore, do you have any suggestions for implementing a secure authentication system in an angularjs application?