forked from drod21/redux-oidc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
# redux-oidc | ||
|
||
A rewrite is in process. Preliminary docs will be published soon. | ||
|
||
### Reasons for the rewrite | ||
- the old version was relying on the `oidc-token-manager` which was not npm compliant and had to be manually maintained, this version now uses the [oidc-client-js](https://github.com/IdentityModel/oidc-client-js/tree/dev) library which is written in ES6, fully tested and npm compatible, | ||
- the old version also relied heavily on creating new instances of the token manager, which could cause unexpected behavior when more than one instance was active at the same time, | ||
- the old version had nothing which pronounced the *redux* in `oidc-redux`. This version offers a reducer including dispatchable actions to handle OIDC interactions. | ||
|
||
|
||
### Description | ||
|
||
This package handles [OpenID-Connect](http://openid.net/connect/) authentication in [redux](http://redux.js.org/) apps. It enables redux apps to authenticate with an external OIDC authentication provider and handles the actions of the OpenID [implicit flow](http://openid.net/specs/openid-connect-implicit-1_0.html). | ||
|
||
It is built upon the [oidc-client-js](https://github.com/IdentityModel/oidc-client-js/tree/dev) library. | ||
|
||
It contains the following parts: | ||
- *token middleware*: [redux middleware]() to automatically check whether or not the current user is signed in & trigger the authentication flow, | ||
- *CallbackComponent*: A react component processing the 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 | ||
|
||
### API | ||
|
||
*coming soon* |