{"repo":"awsfundamentals-hq/cognito-federated-auth","free":true,"listed":false,"github":"https://github.com/awsfundamentals-hq/cognito-federated-auth","clone":"git clone https://github.com/awsfundamentals-hq/cognito-federated-auth.git","description":"🔐 Federated Auth with Cognito","language":"TypeScript","stars":11,"topics":["aws","cognito","newsletter"],"license":null,"category":"auth-billing-email","readme_excerpt":"Amazon Cognito Federated Authentication Demo This project demonstrates how to implement federated authentication with Amazon Cognito and Google OAuth using Next.js and SST (Serverless Stack) v3. Getting Started To run this application, follow these steps: 1. Ensure you have Node.js installed on your system. 2. Clone this repository to your local machine. 3. Install the dependencies by running pnpm i in the project root directory. 4. Create a .env file in the root directory with the following variables: 5. Start the development server by running: This command will deploy the application to your AWS account and start the local development environment. About the Project This application is built using SST v3, which provides a powerful framework for building serverless applications on AWS. It showcases a simple authentication flow that uses Amazon Cognito as the identity provider with Google OAuth integration. The app allows users to: - Sign in with their Google account - View their authentication details - Sign out Project Structure - sst.config.ts : SST configuration file - infra/index.ts : Infrastructure setup with AWS Cognito resources - app/page.tsx : Main Next.js page for the frontend - app/auth/page.tsx : Authentication callback page - app/components/GoogleSignInButton.tsx : Component for Google sign-in functionality - app/components/AuthProviderWrapper.tsx : OIDC authentication provider wrapper - app/lib/types.ts : TypeScript type definitions - app/lib/utils.ts : Utility ","default_branch":null,"files":null,"tree":[],"storefront":"/r/awsfundamentals-hq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/awsfundamentals-hq/cognito-federated-auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}