- Empty functions
function () {}
replaced byangular.noop
- Fixed comment examples referencing old service names
- Store AUTH_HEADER_PREFIX prefix with auth token to facilitate different authentication backends
- Redirect user to logged out page when their session expires.
- BREAKING CHANGE: Seperate the code from the angular_token_auth into seperate files.
- Add Angular-route dependency 1.2 - 1.5.
- Add Angular-mocks dependency 1.2 - 1.5.
- Add build task to create a minified file and a concatenated file.
- Add file linting using eslint version 18.1.0. https://github.com/sindresorhus/grunt-eslint.
- Upgrade Angular compatibility to include 1.3, 1.4, and 1.5
- Add errors to login directive scope.
- Add authRouteChangeStartFactory so on $routeChangeStart can be changed.
- Use 'authModuleSettings' where possible.
- Add STORAGE_METHOD option which overrides the token storage type
- Send a DELETE request to the auth endpoint when logging out to clear the session.
- Add LOGOUT_REDIRECT_URL
- Fix issue with host / hostname not being detected in IE for local paths.
- Add error log when ALLOWED_HOSTS is empty.
- Added support for setting the cookie's path using COOKIE_PATH.
- Added anonymous only flag to routes.
- Login form directive split into separate services and returned as constructor object which allows it to be extended using prototype inheritance in projects.
- Fixed issue where the module would throw an error if route.$$next was undefined.
- Renamed all of the services to fit the data they return.
- Added
getAuth
method to the authFactory which returns all the data stored from the auth response.
- Add STORAGE_METHOD option which overrides the token storage type (Backport from 5.6.0)
- Save token to local storage as well as cookies to support cordova
- Only transform request headers for hosts defined in the ALLOWED_HOSTS config list.
- Add option for authorisation header prefix to allow oAuth 2.0 bearer authorisation
- Only broadcast tokenAuth events after cookie manipulation.
- Removed redirect of URLs containing
next
parameter in therun
method. As it caused an infinite loop in some situations.
- The
tokenAuth
factory has been removed and replaced withauthenticationFactory
which now has only 2 methods,login
andlogout
. tokenFactory
has been added with 3 methods to get, set and clear tokens.- HTTP inteceptor has been added to the package to set appropriate headers on all HTTP requests.
- No more boilerplate required in your app to use angular-token-auth.
- All routes are now anonymous by default. This seems like the best default going forwards.
- Updated naming conventions to be consistent with other angular projects.
- Login directive now inherits parent's scope rather than using it.
- Login directive now requires a template to render.
- Initial release å