Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

maxmantz/redux-oidc

Repository files navigation

Build Status

A package for managing OpenID-Connect authentication in ReactJS / Redux apps. It wraps the popular oidc-client library to redux actions and reducers.

Description

This package handlesOpenID-Connect authentication inredux apps. It enables redux apps to authenticate with an external OIDC authentication provider and handles the actions of the OpenIDimplicit flow orauthorization code flow.

It uses the oidc-client-js library to manage OpenID Connect functionality.

It contains the following parts:

  • CallbackComponent: A react component processing the signin callback from the OpenID-Connect provider,
  • SignoutCallbackComponent: A react component processing the signout callback from the OpenID-Connect provider,
  • reducers & actions: reducers and actions to handle OIDC events,
  • helpers: create helpers to manage the oidc-client-js library

Installation

npm install --save redux-oidc

Peer dependencies

This package wrapsoidc-client-js to use with ReactJS / Redux apps.Install oidc-client like this:

npm install --save oidc-client

In addition there is a peer dependency forimmutable.js, if you want to use it.

babel-polyfill

You need thebabel-polyfill in your build configuration for this package to work.

Version 4 released

BREAKING CHANGE:immutable is no longer a dependency. If you are using the immutable reducer, please check out thedocs.

Documentation

You can find the docs for version 3 here:

Note for react-native users

This library doesn't fully support react-native apps. Please usethis library instead.

Version 2

Check out thewiki for further information for Version 2 (deprecated).

Sample app

There is a sample application demonstrating the use of this packagehere.

Tests

You have to install immutableJS for all the tests to pass:npm install immutable --no-save.Then runnpm run test.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp