An example role based authentication implementation using Angular UI Router.