Releases: mainmatter/ember-simple-auth
Releases · mainmatter/ember-simple-auth
1.1.0-beta.2
- The
silent-error
package was added as a dependency (previously it was only a dev dependency), fixing a bug that occurred when running the new generators, see #911. - The API docs for token expiration and refresh were improved, see #921.
- Lots of Ember Simple Auth's internal where cleaned up to take more advantage of Babel in order to make the code more concise and easier to maintain, see #905.
1.1.0-beta.1
- Session Stores are now asynchronous. Synchronous session stores will still work but are now deprecated and will be removed in Ember Simple Auth 2.0, see #714, #717.
- Ember Simple auth now comes with blueprints for creating authenticators and authorizers, see #879.
- The requests that the devise authenticator makes can now be customized with additional options, see #886.
- The default for (Ember Simple Auth's internal)
baseURL
property is now''
, see #881. browserify
is now only enabled for Ember Simple Auth's own tests, fixing potential problems in apps, see #833.- When the authenticator fails to restore the session with an error, that error will now be logged, see #829.
- When invalidating a torii session, the session data will now be passed to the torii provider, see #808.
- ember-getowner-polyfill is now include in Ember Simple Auth's dependencies so that applications don't have to install it explicitly, see #806.
- Ember Simple Auth will no longer trigger a deprecation regarding use of the
container
property, see #894, #804, #796. - The
DataAdapterMixin
will now only invalidate the session on 401 responses when it is actually currently authenticated, see #722.
1.0.1
1.0.0
Ember Simple Auth 1.0.0 changes a lot of external API, a large part of these changes being breaking changes (see #602 for reference). Because of that this changelog entry does not mark these breaking changes individually but merely offers an overview of what has changed.
- Ember Simple Auth is now compatible with all Ember version starting with 1.12.0.
- Ember Simple Auth is only available as an Ember CLI Addon - the globalized and bower distributions are no longer maintained.
- The session is no longer injected into routes and controllers but instead exposed as a service. The service has most of the methods that the session had before. The session can also no longer be extended. Instead either extend the session service or add another service that uses the session service to provide additional functionality.
- Auto-authorization of all AJAX request has been dropped. All authorization now has to be initiated explicitly via the session service's
authorize
method. There is the newDataAdapterMixin
that can be used to simply authorize all Ember Data requests. - All authenticators and authorizers the application uses now have to be defined in
app/authenticators
andapp/authorizers
respectively while in most cases they will simply inherit one of the predefined authenticators/ authorizers. Also configuration of authenticators and authorizers is no longer done viaconfig/environment.js
but instead by overriding properties in the extended authenticators/authorizers. - The
ApplicationRouteMixin
now maps the session events to thesessionAuthenticated
andsessionInvalidated
methods instead of the actions from previous versions. - The default session store is now the adaptive store that will use
localStorage
if available and a cookie otherwise. When testing, Ember Simple Auth will always use the ephemeral store. - The test helpers now take the application instance as the first argument and must be imported explicitly in the respective test.
- The session is now restored in the application route's
beforeModel
method instead of in an initializer.
0.8.0
0.8.0-beta.3
- Fixed a bug related to the mechanism for automatic translation of session events to route actions leaking state, see #544.
- Fixed a bug where non-secure session data would get lost after a reload, see #534.
- Ember Simple Auth does not explicitly set the container on the session anymore as that's already set by the container itself when creating the object, see #520.
- The Ember CLI Addon now comes with generators for creating custom authenticators, authorizers, stores and sessions, see mainmatter/ember-cli-simple-auth#33
0.8.0-beta.2
0.8.0-beta.2
- Ember Simple Auth now uses the application's
register
andinject
methods instead of the container's, see #462. - A bug in the OAuth 2.0 authorizer was fixed that prevented requests from actually being authorized, see #483.
- Changed the way the test helpers are loaded to prevent JSHint errors, see #478.
- Better implementation for detection of changes in the session store, see #469.
0.8.0-beta.1
- [BREAKING] The devise package's
identificationAttributeName
property now defaults toemail
, see #456. - The secure session data is now stored under the special key
secure
, see #414. This makes sure that the session isn't cleared completely on logout but only thesecure
key instead. This is a [BREAKING] change if you're using a custom authorizer as that must fetch the token etc. from the session'ssecure
key now. - The cookie session store will now only expire on inactivity - as long as the session is active, the cookie's expiration time will frequently be updated, see #451.
- The
LoginControllerMixin
andAuthenticationControllerMixin
mixins are now deprecated. TheinvalidateSession
andauthenticateSession
actions in theApplicationRouteMixin
mixin have been deprecated as well.authenticateSession
is replaced by the newsessionRequiresAuthentication
action, see #467. - The
AuthenticatedRouteMixin
mixin will now correctly return upstreambeforeModel
promises, see #464.
0.7.3
- [BREAKING] The name of the token attribute used by the devise authenticator and authorizer is now
token
by default, see #394. - [BREAKING] The devise authenticator will now send the user's identification for the configured
identificationAttributeName
instead of always usingemail
, see #403. - The
crossOriginWhitelist
now supports whitelisting all subdomains of a specific domain, see #398. - The docs for defining custom authenticators have been improved, see #399.
- The tests will now run against the newest versions of Ember, Ember.js, jQuery and handlebars.
- The examples now run with handlebars 2.0.0 and jQuery 2.1.3.
- The Google+ example has been fixed so that it will always prompt the user for approval, see #412.
- The template for the API docs was updated so that it works with the newest handlebars version.
0.7.2
0.7.2
- The session's
authenticate
method now accepts an arbitrary list of arguments to pass to the authenticator'sauthenticate
method which also allows to pass options to torii providers, see #371. - With the move away from controllers/views and towards components, the session is now injected into components as well, see #364.
- The OAuth 2.0 authenticator now handles access scopes, see #363.
ApplicationRouteMixin
will now send actions to the current route if available or the initial transition, see #367.- Added a new
currentSession()
helper to the Ember Simple Auth Testing package that provides access to the current session, see #359. - Fixed clearing of cookie and
localStorage
stores, see #349. - The
ajaxPrefilter
andajaxError
handlers were cleaned up.