JSON Web Token Tutorial using AngularJS & Laravel | laravel jwt payload
Withtherisingpopularityofsinglepageapplications,mobileapplications,andRESTfulAPIservices,thewaywebdevelopers[1]writeback-endcodehaschangedsignificantly.WithtechnologieslikeAngularJSandBackboneJS,wearenolongerspendingmuchtimebuildingmarkup,insteadwearebuildingAPIsthatourfront-endapplicationsconsume.Ourback-endismoreaboutbusinesslogicanddata,whilepresentationlogicismovedexclusivelytothefront-endormobileapplications.Thesechangeshaveledtonewwaysofimplementingauthenticationinmodernapplications.Au...
With the rising popularity of single page applications, mobile applications, and RESTful API services, the way web developers[1] write back-end code has changed significantly. With technologies like AngularJS and BackboneJS, we are no longer spending much time building markup, instead we are building APIs that our front-end applications consume. Our back-end is more about business logic and data, while presentation logic is moved exclusively to the front-end or mobile applications. These changes have led to new ways of implementing authentication in modern applications.
Authentication is one of the most important parts of any web application. For decades, cookies and server-based authentication were the easiest solution. However, handling authentication in modern Mobile and Single Page Applications can be tricky, and demand a better approach. The best known solutions to authentication problems for APIs are the OAuth 2.0[2] and the JSON Web Token[3] (JWT).
Before we g...