这是indexloc提供的服务,不要输入任何密码
Skip to content

Light, Secure, Pure Javascript OIDC (Open ID Connect) Client. We provide also a REACT wrapper (compatible NextJS, etc.).

License

Notifications You must be signed in to change notification settings

AxaFrance/oidc-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@axa-fr/react-oidc

Codacy Badge Build Status Maintainability Test Coverage

Sample React Oicd

A set of react components and HOC to make Oidc client easy. It aim to simplify OAuth authentication between multiples providers.

About

These components is used to manage client authentication. It uses the libraries "oidc client".

Two version of the component with different "State management" are available :

  • with redux
  • with react context api

Getting Started

How It Works

These components encapsulate the use of "react-router-dom" and "oidc client" in order to hide workfow complexity.

Concept

A set of react components and HOC to make Oidc client easy!

The purpose of the component is :

  • Simple set up
  • React component protection (by composing)
  • Standardize the "Routes" used by the oauth flow
  • Manage the recovery of tokens and different exchanges with "openid connect" server
  • Flexible : You can customize routes and redirect components if you need it
  • HOC => override "fetch" in order to retrieve a new "fetch" that will be able to manage http 401 and http 403 response.

Contribute