OpenID Connect (OIDC) client with React and typescript
-
This is sample application, full credit to Jan Škoruba
-
It contains oidc-client-js and
React
withTypescript
. -
The application is based on
create-react-app
- Create React App -
You will need access to the Initial Platform.
The sample app is ready to be installed locally for trying out the connection to Initial Identity Verification Provider.
git clone https://github.com/sktston/ivp-sample-apps
- Install dependencies
cd oidc-client-react
yarn install
Rename the .env-template
file to .env
and add your variables
REACT_APP_STSAUTHORITY=https://dev-console.myinitial.io/kc/auth/realms/vc-authn
REACT_APP_CLIENTID=oidc-client-react
REACT_APP_CLIENTROOT=https://localhost:3000/
REACT_APP_CLIENTSCOPE='profile vc_authn'
yarn start
- start the web server