O'Reilly logo

Mastering Web Application Development with AngularJS by Pawel Kozlowski, Peter Bacon Darwin

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

Adding client-side security support

The rest of this chapter will look at what we should do in our AngularJS application running in the browser to provide security and give a consistent experience for the user, when dealing with authentication and authorization.

Out of the box, AngularJS does not provide functionality to deal with authentication and authorization. In our sample application, we developed services and directives that can be used in our templates and controllers to display security-related information, handle authorization failures, and manage logging in and logging out.

Adding client-side security support

This diagram shows two user interface elements, the login-toolbar ...

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