O'Reilly logo

AngularJS: Novice to Ninja by Sandeep Panda

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required