Skip to content

stytchauth/stytch-blog-example-app-b2b-saml-sso-python-flask

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Integrating SAML Single Sign-On with Python, Okta, and Stytch

This is a companion example app for the tutorial blog post - Integrating SAML Single Sign-On with Python, Okta, and Stytch. Read the blog post to get started and follow along.

Getting started

You need to make sure you have the following

Setup

Copy api/.env-TEMPLATE to api/.env and set the following environment variables from the Stytch Dashboard.

  • STYTCH_PROJECT_ID
  • STYTCH_SECRET
  • STYTCH_PUBLIC_TOKEN

Copy ui/.env-TEMPLATE to ui/.env and set the following environment variables from the Stytch Dashboard.

  • VITE_STYTCH_PUBLIC_TOKEN

Run the backend

Start by installing the needed packages

cd api
python3 -m venv venv
source venv/bin/activate
pip3 install Flask flask-cors stytch requests python-dotenv

Then run the backend with the following command :

python3 app.py

Run the frontend

Start by installing the needed packages:

npm install

Then run the frontend with the following command:

npm run dev

About

Integrate SAML SSO with Python, Flask, Okta, and Stytch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.7%
  • Python 28.2%
  • CSS 17.5%
  • HTML 3.6%