https://github.com/skorfmann/aws-sso-web
https://github.com/skorfmann/aws-sso-web
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/skorfmann/aws-sso-web
- Owner: skorfmann
- License: mpl-2.0
- Created: 2022-08-28T22:03:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-28T22:06:21.000Z (about 3 years ago)
- Last Synced: 2025-04-08T05:45:14.048Z (6 months ago)
- Language: TypeScript
- Size: 106 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS SSO Web
This demonstrates using AWS SSO from a website. Due to CORS restrictions this needs a local proxy for all interactions with the AWS SSO (OIDC) API. Once credentials are obtained trough AWS SSO no proxy is required anymore for normal AWS SDK calls.
- Find the proxy in [./server.js](./server.js)
- The custom fetch client in [./src/lib/custom-fetch-client.ts](./src/lib/custom-fetch-client.ts)
- The Auth flow in [./src/Auth.tsx](./src/Auth.tsx)Usage:
```
npm install
npm run dev
open http://127.0.0.1:5173
```You'll need your SSO start url and a region, everything else will be dynamically fetched after the SSO authentication has been finished.
NB: This is primarily an explorative project to understand the AWS SSO capabilities better. Don't use this in production!
