Auth stack for AI apps ⚡ Human auth capabilities
Production-ready Next.js applications demonstrating enterprise authentication patterns with Scalekit
Real-time event processing for enterprise workflows
- Secure Webhook Endpoints: Signature validation and payload verification
- Event Processing Pipeline: Handle user lifecycle, organization, and connection events
- Next.js API Routes: Serverless function patterns for webhook handling
- Error Handling: Comprehensive logging and retry mechanisms
Complete enterprise authentication flow
- OAuth 2.0 Integration: Authorization code flow with PKCE
- Hosted Login Box: Customizable authentication UI
- Session Management: Secure JWT handling with HTTP-only cookies
- Route Protection: Middleware-based authentication guards
- User Context: React hooks for authentication state
Enterprise SSO bridging with AWS Cognito
- OIDC Protocol: Seamless integration between Cognito and Scalekit
- Enterprise Identity Providers: SAML/OIDC federation support
- Iron Session Security: Encrypted session storage
- Responsive Design: Tailwind CSS with mobile-first approach
- Protected Routes: App Router compatible middleware
- Node.js (v16 or higher)
- npm or yarn
- ScaleKit credentials (client ID and secret)
- .env file with required environment variables
- Clone this repository
- Navigate to the desired example directory
- Run
npm installoryarnto install dependencies - Create a
.envfile with your ScaleKit credentials (see.env.examplein each project) - Run
npm run devoryarn devto start the development server
Each example requires specific environment variables. Check the .env.example file in each project directory for details.
For assistance, please contact ScaleKit support or open an issue in this repository.
- Enterprise SSO: SAML 2.0 and OIDC protocol support
- User Management: Organization user lifecycle management
- Directory Sync: SCIM 2.0 automated user provisioning
- Admin Portal: Embeddable interface for IT administrators
- Webhook Events: Real-time notifications for user and organization changes
- Security: JWT tokens, CSRF protection, and secure session management
- 📚 Scalekit Documentation
- 🔧 API Reference
- 🚀 Full Stack Auth Quickstart
- 🔗 SSO Integration Guide
- 💬 Community Examples
- ⚡ Next.js Example
We welcome contributions! Please feel free to submit a pull request with any improvements or additional examples.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Scalekit