This repo contains ReactJS example app that demonstrate the various OpenId Connect's Implicit flow.
- Initially clone this repository
- RUN
npm install
and wait for the completion of installation onnode_modules
- Once
node_modules
are installed and RUNnpm run start
to start execution ofreact-scripts
- You will receive a localhost URL, open that specific URL in the browser to view your initial screen
- You can configure your OIDC related information in
src/model/Config.js
path - Make sure you replace
your-midentity-box-oidc-tenant-id
with your TenantID andyour-midentity-box-oidc-app-client-id
with your ClientID when you created your OpenId Connect app via the mIDentity Box portal. - Change
{partnerid}.{hostname}
to match the sub-domain by mIDentity Box portal.
Note: Check with mIDentity Box administrator to enable Implicit Flow
Available on:
You can now view midentitybox-implicitflow in the browser.
Local: http://localhost:3000
On Your Network: http://192.168.225.192:3000
Note that the development build is not optimized.
To create a production build, use npm run build.
- Click on "login" button
- You will be redirected to "mIDentityBox" user authentication screen
- Type username and password, then click "Continue to login"
- Once user is authentication with proper credentials
- You will receive a transaction in your mIDentityBox app
- You can able to "Accept/Decline" the transaction request
- By accepting the transaction from mobile app, you can able to authorize your login
OpenId Connect is a great way to add user authentication to your application where you are depending on another party to manage the user identities.
In this case mIDentity Box can manage the identity of your users making it faster to get up and running.
By implementing OpenId Connect via mIDentity Box you are creating a session which can be used to single sign on from your custom app into other apps that your users may have access to via the mIDentity Box portal
If MFA is enabled for a user in mIDentity Box then they will be prompted to enter a token during the authentication. mIDentity Box takes care of all of this for you, making strong authentication much easier to implement in your app.
In order to run any of the examples you will need to create an OpenId Connect app in mIDentity Box Admin portal.
If you don't have a mIDentity Box account you can sign up here.