Skip to content
/ id Public

πŸ›‘οΈ Hanzo ID: Identity, access, and permission orchestration β€” secure, scalable access control for agents, apps, and users.

License

Notifications You must be signed in to change notification settings

hanzoai/id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hanzo ID

Hanzo ID is a modern Identity and Access Management (ID) system based on Casdoor, customized for the Hanzo ecosystem. It provides comprehensive authentication and authorization services with support for OAuth 2.0, OIDC, SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA and RADIUS protocols.

Features

  • πŸ” Multi-Protocol Support: OAuth 2.0, OpenID Connect, SAML, CAS, LDAP, RADIUS
  • πŸ›‘οΈ Advanced Security: WebAuthn, TOTP, MFA, Passwordless authentication
  • 🎨 Customizable UI: Modern, responsive interface with Hanzo branding
  • 🌐 Multi-Tenancy: Support for multiple organizations and applications
  • πŸ”„ SSO Integration: Seamless Single Sign-On across Hanzo services
  • πŸ“Š Comprehensive Admin Panel: User management, role-based access control, audit logs
  • πŸš€ High Performance: Built with Go for speed and reliability
  • 🐳 Cloud Native: Docker-ready with Kubernetes support

Quick Start

Using Docker Compose

# Clone the repository
git clone https://github.com/hanzoai/id.git hanzo-id
cd hanzo-id

# Start services
docker compose up -d

# Access Hanzo ID at http://localhost:8000

Development Setup

# Backend
go mod download
go run main.go

# Frontend (in another terminal)
cd web
yarn install
yarn start

Configuration

Edit conf/app.conf to configure:

  • Database connection (MySQL/PostgreSQL)
  • Redis connection
  • OAuth providers
  • SMTP settings
  • And more...

Environment Variables

  • MYSQL_ROOT_PASSWORD: Database root password
  • REDIS_PASSWORD: Redis password (if enabled)
  • HANZO_ID_SECRET: Application secret key

Default Credentials

  • Username: admin
  • Password: 123456

⚠️ Important: Change the default password immediately after first login.

API Documentation

Swagger documentation is available at: http://localhost:8000/swagger/

Deployment

Production with Traefik

docker compose -f compose.prod.yaml up -d

This will deploy Hanzo ID with:

  • Automatic SSL/TLS via Let's Encrypt
  • Traefik reverse proxy
  • Production-ready MySQL and Redis
  • Available at https://id.hanzo.ai

Development Environment

docker compose -f compose.dev.yaml up -d

Available at https://id-dev.hanzo.ai

Integration with Hanzo Services

Hanzo ID seamlessly integrates with:

  • Hanzo Chat: AI-powered chat platform
  • Hanzo Cloud: Infrastructure management
  • Hanzo Analytics: Usage tracking and insights
  • Hanzo API: Core API services

Security

  • All passwords are hashed using Argon2id
  • Support for hardware security keys (WebAuthn)
  • Built-in rate limiting and brute force protection
  • Comprehensive audit logging
  • CSRF protection
  • XSS prevention

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

Hanzo ID is licensed under the Apache License 2.0. See LICENSE for details.

Support

Acknowledgments

Hanzo ID is based on the excellent Casdoor project. We're grateful to the Casdoor team for creating such a robust ID foundation.


Built with ❀️ by the Hanzo team

About

πŸ›‘οΈ Hanzo ID: Identity, access, and permission orchestration β€” secure, scalable access control for agents, apps, and users.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •