This demonstrates how to create configurations of the SIW upon parameters being passed along through redirect URIs configured within Okta and how to utilize the widget to perform a SAML based authentication.
This is based off the official React Sign In Widget tutorial: https://developer.okta.com/code/react/okta_react_sign-in_widget/
- Okta Tenant
- Node.JS
- Download the repository through
gitor through the ZIP download cd saml-siw-examplenpm installnpm run start-dev
Ensure that the localhost:3000 (or the host url) has been added as a Trusted Origin within the tenant

Add configurations for your Sign In Widget within the src/config.js file. In addition, you can adjust parameters passed
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.