redux-oidc

A package for managing OpenID Connect authentication in ReactJS / Redux apps

MIT License

Downloads
34.7K
Stars
400
Committers
24

Bot releases are hidden (Show)

redux-oidc - v3.0.0-beta.9

Published by maxmantz over 7 years ago

Added TypeScript definition file (#53).

redux-oidc - v3.0.0-beta.8

Published by maxmantz over 7 years ago

Dependency changes:

  • co was causing trouble, so it has been removed as a peer dependency.

API Changes:

  • LOAD_USER_ERROR is now dispatched when an error occurred during login.
redux-oidc - v3.0.0-beta.7

Published by maxmantz over 7 years ago

API changes:

  • added a new helper function loadUser to this library. It takes the redux store and userManager as parameters and loads the current user into the reducers when the app loads. When you are using silent renew, this helper function makes the oidc middleware redundant. See the example app for details on how to use it.
  • you will have to import babel-polyfill to your silent renew page. See the example app for details.

Peer dependencies:

  • prop-types are now a peer dependency. Thanks @BrandonBoone.
redux-oidc - v3.0.0-beta.6

Published by maxmantz over 7 years ago

  • the middleware now doesn't catch any errors to prevent unclear error messages when debugging other middlewares (see issue #36).
redux-oidc - v3.0.0-beta.5

Published by maxmantz over 7 years ago

Changes:

  • SILENT_RENEW_ERROR now clears the user object from state.
redux-oidc - v3.0.0-beta.4

Published by maxmantz over 7 years ago

Bug fixes:

  • fixed an infinite loop of dispachtes of USER_FOUND & USER_EXPIRED after silent renew failed or page was manually reloaded (issue #30).
redux-oidc - v3.0.0-beta.3

Published by maxmantz over 7 years ago

  • fixed issue #23 in immutable reducer
redux-oidc - v3.0.0-beta.2

Published by maxmantz almost 8 years ago

API Changes:

  • <CallbackComponent /> now requires a child element,
  • route is no longer needed in <CallbackComponent/>.

Fixes:

  • fixed bug where USER_EXPIRED wouldn't set the user to null (#23).

Other changes:

  • updated dev dependencies.
redux-oidc - v3.0.0-beta.1

Published by maxmantz almost 8 years ago

API changes:

  • createOidcMiddleware() now only needs the userManager as an argument,
  • OidcProvider now needs the userManager as a prop,
  • no more childContext in OidcProvider,
  • dropped shouldValidate - user is now always validated,
  • dropped triggerAuthFlow - the sign in process now always needs to be started manually.

Internal changes:

  • introduced co to handle the async nature of oidc-client and it's userStore.
  • no more reliance on window.localStorage or window.location to support SSR & react-native.
  • several smaller changes
redux-oidc - v2.2.2-beta.1

Published by maxmantz almost 8 years ago

  • added mapping to the userSignedOut event of oidc-client.
redux-oidc - v2.2.1

Published by maxmantz about 8 years ago

  • middleware: provided a default value for callbackRoute to fix a breaking change introduced in version 2.2.0-beta.1 (#11).
redux-oidc - v2.2.0

Published by maxmantz about 8 years ago

  • bumped oidc-client minimum version to 1.2.0
redux-oidc - v2.2.0-beta.3

Published by maxmantz about 8 years ago

  • <CallbackComponent />: added an optional prop called route to pass to the user manager (see issue #14),
  • middleware: now passes window.location.pathname instead of window.location.href to the callback state to fix a warning when used with react-router.
redux-oidc - v2.2.0-beta.2

Published by maxmantz about 8 years ago

  • added support for redux-auth-wrapper (see #12),
  • removed support for providing a loaded user
redux-oidc - v2.2.0-beta.1

Published by maxmantz about 8 years ago

  • fixed a bug where an interrupted login attempt would stop the middleware from performing the login on page reload,
  • as a result you are now required to pass in a string to the middleware creator function, providing the callback route string (e.g. '/callback', see documentation for details),
  • triggerAuthFlow in the middleware creator function is now undefined by default (was true in previous versions),
  • added a parameter to pass in a synchronously loaded User object (NOT SUPPORTED YET BY oidc-client).
redux-oidc - v2.1.0

Published by maxmantz about 8 years ago

  • changed oidc-client version to 1.1.0
redux-oidc - v2.1.0-beta.3

Published by maxmantz about 8 years ago

  • fixed an issue where the user had to log in again after a page refresh.
redux-oidc - v2.1.0-beta.2

Published by maxmantz about 8 years ago

  • changed externals to exclude oidc-client & immutable from build.
redux-oidc - v2.1.0-beta.1

Published by maxmantz about 8 years ago

  • <CallbackComponent />
    • errorCallback is now a prop. It takes a function which gets the redirect error passed in.
  • oidc-client-js is now a peer dependency. You will have to install it manually running npm install --save oidc-client.
redux-oidc - v2.0.2-beta.1

Published by maxmantz over 8 years ago

  • changed oidc-client version to 1.1.0-beta.3.
Package Rankings
Top 1.83% on Npmjs.org
Badges
Extracted from project README
Build Status
Related Projects