Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

OktaCIAM/saml-siw-example

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Sign In Widget with SAML and URL Parameters

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/

Requirements

  • Okta Tenant
  • Node.JS

Getting Started

  1. Download the repository through git or through the ZIP download
  2. cd saml-siw-example
  3. npm install
  4. npm run start-dev

Okta Tenant Configuration

Ensure that the localhost:3000 (or the host url) has been added as a Trusted Origin within the tenant image

Editing Configurations

Add configurations for your Sign In Widget within the src/config.js file. In addition, you can adjust parameters passed

Scripts

In the project directory, you can run:

npm run start-dev

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.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.