Skip to main content

Overview

Critical for production: Secure authentication with multiple identity providers for enterprise SSO and OAuth integration. Production agents need proper authentication. This enables secure access control, user management, and enterprise integration.

Supported Providers

AuthKit - Passwordless auth, magic links, MFA
GitHub - OAuth 2.0, org membership, team-based access
Google - OAuth 2.0, Workspace integration
Azure (Microsoft Entra) - Active Directory, enterprise SSO
AWS Cognito - User pools, SAML federation

Implementation

from bindu.auth import AuthConfig, Provider

auth_config = AuthConfig(
    providers=[
        Provider.GITHUB(
            client_id="github-client-id",
            client_secret="github-secret",
            allowed_orgs=["your-org"]
        ),
        Provider.GOOGLE(
            client_id="google-client-id",
            client_secret="google-secret"
        ),
    ],
    default_provider="github"
)

# Protect endpoints
@authenticate(providers=["github", "google"])
async def protected_endpoint(request):
    user = request.user
    print(f"User {user.email} from {user.provider}")

Features

SSO - Single sign-on across multiple apps
Role Mapping - Map provider roles to Bindu trust levels
MFA - Multi-factor authentication support
Session Management - Secure sessions with auto-refresh

Status

🚀 In Progress - Core OAuth flows and provider integrations

What’s Next

  • Discuss - Share your auth requirements on Discord
  • Request - Need another provider? Let us know