Chapter 16Authentication and Authorization in AngularJS
Authentication and Authorization are two important parts of any web application. Authentication is a process during which a client needs to prove its identity to the server. Authorization, on the other hand, is used by the server to determine if the user has permission to view a particular resource. In this chapter you'll learn how to implement user authentication and authorization in our demo app.
Before getting started, let's go through our problem statement. We want to implement an authentication/authorization mechanism where only administrators can publish, edit, or delete posts. To authenticate themselves, the users must provide a username and password and we'll check if it's valid. ...
Get AngularJS: Novice to Ninja now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.