I want to develop login functionality with Auth component of laravel and angularJS. Laravel's Auth component handles all the requirement of login system. i.e Store login session, redirect to dashboard or requested page if user is already logged in, redirect to login page if user is not logged in, authenticate http request using csrf token etc. Now, I want to develop these all functionality using Auth component of laravel and AngularJS. So I don't know that if I developed login functionality with angularJS, will laravel still handle all functionality as mentioned above? I have doubt because articles on internet tells that I can do it using token based authentication. If I do token based login using angular? Then how I can handle redirection to login for not logged in users, redirection to previous requested page for logged in users, authentication every http request etc. If anyone can explain with some demo or link, it will be appreciated.
I have refereed some links. But I can't get that how to maintain other functionalities like redirection of page, authenticate request etc. Here are links.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire