auth-module

Zero-boilerplate authentication support for Nuxt 2

MIT License

Downloads
204.6K
Stars
1.9K
Committers
193

Bot releases are hidden (Show)

auth-module -

Published by pi0 over 6 years ago

4.3.0 (2018-04-28)

Bug Fixes

Features

auth-module -

Published by pi0 over 6 years ago

4.2.0 (2018-04-20)

Bug Fixes

  • add check for req object on getCookie (#132) (7d17f75)
  • don't redirect callback to login when using 'auth' globally (#131) (08d86cb)
  • docs: update redirect in options.md (#146) (19de22b)
  • fullPathRedirect with query support (#149) (a37d599)
  • logout locally before logging in. fixes #136. (#151) (b6cfad4)

Features

  • oauth2: support authorization code grant and refresh token (#145) (18ecca5)
  • add support for custom token key in request header (#152) (f7576e3)
auth-module -

Published by pi0 over 6 years ago

4.1.0 (2018-04-09)

Features

  • scheme/oauth2: add option to use IdToken instead of AccessToken (#121) (554a042)
  • add support for logging out without an API endpoint (#124) (6189c6d)
auth-module -

Published by pi0 over 6 years ago

Bug Fixes

  • local-scheme-token: avoid token type duplicata on Axios requests (3908563)
  • local-scheme-token: removed token type from axios setToken (c64e7f1), closes #113
  • scheme-resolution: fix problem with backslashes in path to schemes on windows (77161b8)
  • no token exception when tokenRequired is set to false (#118) (56265a7)
auth-module - 4.0.0 is stable!

Published by pi0 over 6 years ago

Thanks for your patience and feedback that made this possible. 💖

We are going back to the standard release cycles.

Please see New Docs, Examples and Migration Guide for getting started.

Bug Fixes

  • clear axios token after logout (#84) (be65f09)
  • Typo in README.md (1ec0882)
  • use getToken (bec8518)
  • wrong axios ordering in windows platform. (#56) (44db0d4)
  • auth: return promise reject on request error (f2883c6)
  • fetchUser: fetchUser should only be called when enabled (dd0638e)
  • fetchUser: fetchUser should only be called when enabled (#60) (beb3121)
  • module: remove duplicate strategy options (2e167f8)

Features

  • add auth0-js scheme (c38a1e4)
  • package: add client-oauth2 (e0efa60)
  • redirect: add full path redirect option (#96) (ca8785f)
  • allow extending auth with plugins (#98) (3712a60)
  • allow providers params to be overloaded from nuxt.config.js (#77) (8542959)
  • handle invalid strategy (f079ae2)
  • loginWith function (2aed448)
  • test: add custom _provider and _scheme for basic fixture (7423e77)
  • use consola for cli messages (1db2b2e)
  • user and loggedIn shortcuts (13a5eec)

Performance Improvements

  • module: optimize plugin (b7998c6)
auth-module -

Published by pi0 over 6 years ago

changes

  • plugin and init logic refactored. Any unhandled error will be caught now. This helps to prevent application crashing with auth module. (b58ca17)
  • resetOnError is set to false by default. Previously any network error was causing user log out! We are working on better oauth token reset methods.
  • fix scope checks during logout (e2ebd97)
auth-module -

Published by pi0 over 6 years ago

Bug Fixes

  • Auth: register vuex store before all watchers (006650f)
auth-module -

Published by pi0 over 6 years ago

4.0.0-rc.1 (2018-02-03)

Bug Fixes

Features

  • watchState and watchLoggedIn (b628455), closes #52
auth-module -

Published by pi0 over 6 years ago

This is an almost rewrite of Auth module, to improve perf, stability and make it more customizable.

Highlights:

  • auth and no-auth middleware unified to a smarter auth middleware.
  • isLoggedIn will be automatically watched for changes and changing route on login/logout.
  • Replaced auth store in the flavor of a new Auth class.
  • $auth instance is shared across Nuxt context (plugins, middleware, pages, etc).
  • Options simplified
  • The token is no longer exposed in server response (As a Set-Cookie header or window.nuxt.state) for security reasons.
  • Error handling is now unified and is pluggable using $auth.onError.
  • No more duplicate requests to user endpoint.
  • Token/User extraction is easily possible using entrypoint.propertyName. It supports nested values like token.AccessToken or even more complicated ones including arrays like devices.0.token.
  • A new hasScope utility to easily check permissions.
  • Docs updated
  • A fully working JWT example is added. Source Code. Deployed version.

Please be sure to read both Docs and Migration guide


Thanks:

  • @breakingrobot - New collaborator - He helped with many ideas in this release
  • @heww for early testing