https://github.com/areknawo/how-to-implement-saml-single-sign-on-with-stytch--react--and-node.js
https://github.com/areknawo/how-to-implement-saml-single-sign-on-with-stytch--react--and-node.js
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/areknawo/how-to-implement-saml-single-sign-on-with-stytch--react--and-node.js
- Owner: areknawo
- Created: 2024-03-19T01:56:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-19T02:07:51.000Z (about 1 year ago)
- Last Synced: 2025-02-01T08:13:45.043Z (4 months ago)
- Language: TypeScript
- Size: 63.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to Implement SAML Single Sign On with Stytch, React and Node.js
This project that demonstrates how to implement SAML SSO with [Vite](https://vitejs.dev)-powered React frontend, Express.js backend and [Stytch](https://stytch.com/) SDK.
## Development
### Frontend
Navigate to the `frontend` directory:
```bash
cd frontend
```Install the dependencies:
```bash
npm install
```Copy the `.env.example` file to `.env` and fill in the values:
```bash
VITE_STYTCH_PUBLIC_TOKEN=
VITE_STYTCH_ORGANIZATION_SLUG=
```Run the development server:
```bash
npm run dev
```### Backend
Navigate to the `backend` directory:
```bash
cd frontend
```Install the dependencies:
```bash
npm install
```Copy the `.env.example` file to `.env` and fill in the values:
```bash
STYTCH_SECRET=
STYTCH_PROJECT_ID=
STYTCH_ORGANIZATION_SLUG=
```Start the Node.js server:
```bash
npm run start
```Go to the organization login portal (`http://localhost:3000/{{slug}}/login`, where `{{slug}}` is the slug assigned to your Stytch Organization) to test the login flow.