Auth stack for AI apps ⚡ Human auth capabilities
Production-ready Node.js applications showcasing enterprise authentication and admin portal integration
Enterprise-grade admin interface integration
- OAuth 2.0 Client Credentials: Secure server-to-server authentication
- Portal Link Generation: Dynamic admin portal URLs with proper security
- iframe Integration: Seamless embedding with CSP headers and security policies
- Session Management: Secure token handling and refresh mechanisms
Key Implementation Files:
embed-admin-portal-sample/index.js- Express server with portal integrationembed-admin-portal-sample/libraries/auth.js- OAuth token managementembed-admin-portal-sample/libraries/scalekit.js- Portal URL generation and validation
Server-side authentication patterns
- OAuth 2.0 Flows: Authorization code and client credentials patterns
- Token Management: Secure credential storage and rotation
- Error Handling: Comprehensive error scenarios and recovery
- API Integration: Direct Scalekit API interactions for user management
- Node.js (v16 or higher)
- Scalekit credentials (client ID and secret)
- .env file with required environment variables
- Clone this repository
- Navigate to the desired example directory
- Run
npm installto install dependencies - Create a
.envfile with your credentials - Run
npm startto launch the application
Each example requires specific environment variables. Refer to the example's README for details.
We welcome contributions! Please follow these guidelines:
- Fork the repository
- Create a new branch for your feature
- Submit a pull request with a clear description of changes
- Enterprise SSO: SAML 2.0 and OIDC protocol support
- Admin Portal: White-labeled administration interface
- User Management: Complete organization user lifecycle
- Directory Sync: SCIM 2.0 automated provisioning
- OAuth Security: Client credentials and authorization code flows
- Error Handling: Production-ready error management and logging
- 📚 Scalekit Documentation
- 🔧 API Reference
- 🚀 Full Stack Auth Quickstart
- 🔗 SSO Integration Guide
- 💬 Community Examples
- ⚡ Node.js SDK
For assistance, please contact Scalekit support or open an issue in this repository.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Scalekit