One topic often pushed to the side when talking about Angular apps is security. The short answer is "you can't secure the client side." However, the reality is you still need to secure your application as a whole. In this session, you will learn about what you can and can't do with security in Angular, and how you can protect the application as a whole with a combination of securing the files that compose your application, providing a good user experience for login and authorization in your client side app, and securing the Web API calls that your Angular app depends on to access the sensitive parts of your application - the data. You'll also learn about other aspects of security that the client side has to participate in, including CSRF/XSRF, XSS, and CORS. You'll learn all this primarily in the context of using ASP.NET for your back end, and you'll see how to leverage Angular constructs such as guards and service components, and managing the Http service to get your auth token added to your back-end calls.
You will learn:
- What parts of your Angular App you can secure and how
- How to work with secured Web APIs in your SPA
- How to manage CSRF and CORS