Token based authentication provider for angular.js.