Demonstrating authorization in Ionic

Let's now build an Ionic application that will handle both authentication and authorization. Authorization refers to rules that determine who is allowed to do what. Authentication and authorization are central parts of securing an application:

Authentication = login + password (who you are)

Authorization = permissions (what you are allowed to do)

In this section, we will see how we can secure views of the Ionic application that are login protected. We will be working on the following points:

  • HomePage will be public
  • ArticlesPage is protected and will only be accessed after login
  • Menu is also dynamically updated on auth status
  • LoginPage will be inaccessible once a user is loggedIn
  • Authorization header will ...

Get Hybrid Mobile Development with Ionic 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.