- Added loginAfterSignup support
- Fixed bug with SSO
- Fixed minification problem with
auth0-angularandLock
getTokenmethod now returns the full delegation object instead of just theid_token. This breaks backward compatibility with the previous version. It lets you useauth0-angularfor other delegations besides Auth0 like Amazon which doesn't return anid_token- Post install script has been removed. It forced people using this library to have
bowerinstalled. - This library can now be configured from both the
configmethod via theauthProvider.initas well as anywhere else in the app via theauth.initmethod. - Bumped auth0.js version. When using
refresh_tokenand getting a newid_token, now original scopes are remembered. SSOmethod has been fixed.nameis now sent instead ofstrategy
- Added versioning info to built files
- Fixed bug with IE and
Function.name - Added
redirectmode example forAuth0.js
- Now the signin by default shows the signup and reset buttons
- Tutorial fixes for when the page is refreshed and the JWT is expired
- Added handling for the case when JWT is expired, page is refreshed and a RefreshToken is used to refresh the page.
- Minor fixes
- Minor fixes
- Magic is removed.
auth0-angularis now much smaller and with less magic - We recommend the usage of
angular-storageandangular-jwtfor storing information and token handling - All samples were redone.
- New tutorials are made to teach people how to use the new dependencies
- We've migrated to Auth0 Lock
- Fixed bug when using auth0js library
- Added
authenticatedevent for after refresh
- BugFix with
sso: true
- Added
tokenPayloadtoauth
- Fixed bug with email not recognized as possible parameter to do /ro
- Small BugFix for Refresh Token
- Default storage service is now
localStorage. It can fallback tongCookies. More info here
- Added Refresh Token behaviour mostly for usage in Mobile apps. More info here
- Fixed error when no callback was added
- Added
changePassowrdbehaviour forresetcall if auth0.js is injected
- Fixed error when signin was failling with auth0.js and still saving undefined cookies.
- Added new delegation methods according to new
auth0.jsrelease.
- Fixed bug with redirect mode and callbacks
- Added
auth.profilePromisefield for using promises.
- Fixed bug with Username-Password not working when using minified auth0-angular.js
- We've removed promised for
signin,signupandreset. Promises can only be fullfilled once. Therefore, if a person would open the signin widget and put the wrong password 3 times and then put it ok, the promise was never notified of the success. That's why we changed only for these 3 to callbacks. This is a breaking change and that's why we're releasing 2.0.0.
- Updated documentation to add custom storage
- When forbiden, deleting stored values
- Implemented token expired functionality. Fixes #54
- Updated all documentation
- Added
signupandresetfunctions to trigger the widget in those modes
- Added
hookEventsmethod inauthto hook all events once the app is started. - Calling
logoutevent once signout is done
- Better popup handling (powered by Winchan).
- Phonegap support.
- updated examples: Auth0.js to 3.1 and Widget to 5.0.
- Added
ssoconfiguration to theauthProviderto useSSO.
- We've refactored the code to improve code quality
- We've improved
redirectfeature of the SDK. Now, theredirectfeature parses the hash with theaccessTokenas part of Angular's URL changing process - We've added
requiresLoginparamter to routes to specify if a route is protected or not. If a user tries to get to a protected route, he'll be redirected to the login page - We've added the
refreshTokenmethod to easily refresh the JWT token that we have - We've added a better way to subscribe to events like
loginSuccessandloginFailure. This events now receive all the properties from authentication and you can inject any AngularJS service in there to use. - We've extracted the token saving module to
auth0.storagemodule so that if you want to implement your own storage instead of usingngCookiesyou easily can if you useauthStorageinterface. - Now you just need to add one
auth0module to your project and it'll work for eitherredirect,poppupand it includes the$httpInterceptorthat sends the JWT. - All the examples and documentation have been updated for this new interface
- Lots of other small bug and fixes
- Added
statetoauthwhen getting values from hash or cookies.
- Now on
logoutwe are disposing properlyprofileanddelegatedTokens.
- Fixes issues with Auth0 and Auth0Widget minified versions: When on 0.4.3 it was made compatible with RequireJS a check to
constructor.namewas used to make sure the name of the constructor instance. When tested against the minified versions that value was the name of the minified constructor name (so it always executed the code for the widget which receives callback as third parameter). Now this check is performed by asserting getClient method to be present (part of Auth0 Widget but not Auth0.js).
- Fixes Auth0Widget check to be compatible with requireJS.
- Adding
mainattribute topackage.json
- Fixing
isAuthenticatedbug: whenidTokenexpiredisAuthenticatedstill was set to true.
## 0.4.0
- Adding support for Auth0 Widget with popup mode (only social).
- Fixed bug on
authInterceptor: when$httprequest failed it executedsuccessinstead oferrorcallback.
- Adding event AUTH_EVENTS.loginFailed to replace AUTH_EVENTS.loginFailure. From this version, usage of AUTH_EVENTS.loginFailed is deprecated.
- Fixed redirect mode: fixing exception when reloading a page after authentication.
- The default way of showing social connections is by using popup. If you want to use redirect mode, you may want to check the new redirect example.
- Renamed module
auth0-authto beauth0. Oldauth0module is called nowauth0-redirect. - The
auth.loadedpromise, which allows the user to tell whether or not the page has loaded, was added AUTH_EVENTS.redirectEndednow is fired always (even afterAUTH_EVENTS.loginSuccessandAUTH_EVENTS.loginFailed).- Now
auth.signinmethod returns a promise:auth.signin({connection: 'my-connection'}).then(function () { // When user is authenticated }, function () { // On invalid credentials });
- Replaced $safeApply with $timeout.
- There is only one instance of
auth.profile. When doinggetProfilethe promise returnsauth.profilenot a new instance. auth.profileby default starts as an empty object that will be later populated when thegetProfilepromise is resolved.authProvider.initwas changed toauthProvider.init(options, [Auth0Constructor]).Auth0Constructoris a constructor (function that can benew`ed) that could be either Auth0 (found in auth0.js) or Auth0Widget (found in auth0-widget). RequireJS users now are able to parametrize the constructor to be used.
- Version 1.2.16 of Angular changed the behavior of how
$cookieshandles$cookies.hello = undefined. In the past, it erasedhellobut now serializesundefinedas"undefined". Replacing$cookieswith$cookieStore(which handle serialization) to avoid further problems. - Adding error handling when cookie parsing fails so it does not break the library.
- Updating Angular version to 1.2.16.
- Profile is no longer saved in cookies as, in some cases, it was bigger than the maximum allowed size. Current policy is to store it in memory and each time page reloads fetch it again.
- Fixed: when login fails the proper error object is sent in the
AUTH_EVENTS.loginFailedevent. - Fixing bug that made
getTokenmethod fail: AsgetTokenis not exposed by the widget it should be accessed using thegetClientmethod that returns the auth0.js wrapped instance.
- Added
AUTH_EVENTS.redirectEndedevent that is emitted when the callback URL is parsed but it does not contain neitheraccess_tokennorerror. On that way, it can be determined whether the redirect ended to execute an action. For example, this is useful with theAUTH_EVENTS.loginSuccessandAUTH_EVENTS.loginFailedto show a loading page while being redirected.
-
Removed promises from
signinmethod. Now the way to handle login is by listening toAUTH_EVENTS.loginSuccess:$rootScope.$on(AUTH_EVENTS.loginSuccess, function () { // TODO Handle when login succeeds $location.path('/'); });
-
Removed
ngRouteandroutefrom auth0-angular. -
Created a dictionary with the authentication events:
myApp.run(function ($rootScope, AUTH_EVENTS) { $rootScope.$on(AUTH_EVENTS.loginSuccess, function () { // TODO Handle login success here! }); });
-
authInterceptormust to be added explicitely on the user code. The idea behind this is to prevent leaking the token in CORS requests.