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

Summary

In this chapter, we have looked at some common security issues in rich client web applications, and how they compare to traditional, server-based web applications. In particular, while security checks must always be done at the server, the client and the server must also work together to prevent malicious attacks. We implemented a number of services and directives to support security in our application. We saw how the AngularJS promise-based $http service allows us to intercept responses to unauthorized server requests, and then give the user the opportunity to authenticate without having to interrupt or restart the flow of the application logic. Finally, we made use of route resolve functions in our application routes to check authorization, ...

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