When creating my SPA with angularJS, I came to the point where I want to implement user authentication on my angularJS site. However, I do not know where to start and what are the best practices.
Basically, I have confidence that you can have one or more roles. I was looking for examples, so I could get a basic idea of how to handle this correctly, but so far I have come across examples that are very simple or not so safe (like this ).
So my question is how to implement an authentication service using REST (or custom API URLs) to authenticate the user, and then display the user information on the page using angularJS, and also provide the best security coverage using (for example) csrf token from Laravel?
Thanks in advance, Nick van der Mage
angularjs authentication php laravel
Battleon
source share