params attribute for oauth 2 url parameters (with full backwards compatibility).
response_type for oauth2.
ignoreVueAuth field that can be set on requests to prevent setting headers or tokens on requests.
impersonating field that can be set to
false to run that request with "default" token (not impersonating).
_invalidToken check on
http drivers. The method still exists but is empty.
tokenStore array for setting storage preferences
rememberMe cookie on logout.
localStorage is not supported. Note that the cookie is used as a dud and not meant to be used by server or back-end as part of authentication scheme.
auth_token instead of
_invalidToken token call.
loginData.fetchUser to still authenticate without user.
refreshData.interval property for automatic refresh fetches. Default to 30s. Set to 0 for none.
loginData.fetchUser when set to
transition method, replaced with
redirect method for easy access to check for redirects from auth.
fetchData useful in case we need a preset before auth. For instance when fetching properties from server.
refreshData.enabled has been added to disable refresh.
Vue has been in such a volatile state, especially between versions and 1 and 2. There have been many breaking changes as well as removing vue-resource as the officially recommended package for Vue.
Because of all these changes and potential breaking changes the package has been changed to a much more driver centric model for "router", "resource" and "authentication" . Due to the nature of Vue and the current eco-system with Webpack, to avoid bloat this means the drivers will need to be passed in manually. Check the install section for more info.
We will see some ugly
require code when including the plugin. But as a trade off it will reduce bloat and allow the plugin to much better support different versions of Vue as well as different "router", "resource" and "authentication" modules.
To ease confusion for this driver centric model the plugin has been bumped to a 2.x version. This will also keep it in line with the current Vue 2.x version.
auth must be set now and will not auto bind (this is because webpack would pre load all drivers with dynamic variable).
loginData.fetchUser option to allow disabling of user fetch on login (which will also be disabled on refreshes).