Files
hive/AUTH_CREDENTIALS.md
anthonyrawlins b6bff318d9 WIP: Save current work before CHORUS rebrand
- Agent roles integration progress
- Various backend and frontend updates
- Storybook cache cleanup

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 02:20:56 +10:00

1.6 KiB

Hive Authentication System Credentials

Default Administrator Account

CRITICAL: These are the OFFICIAL Hive admin credentials. Do not change without updating all references.

Username: admin
Password: hiveadmin123

Authentication System Architecture

  • Backend: FastAPI with OAuth2 + JWT tokens
  • Frontend: React with AuthContext using FormData for login
  • Database: PostgreSQL users table with bcrypt password hashing
  • API Endpoint: POST /api/auth/login (expects FormData, not JSON)

Database Schema

The default admin user should be created in the database with:

  • username: admin
  • email: admin@hive.local
  • password: hiveadmin123 (bcrypt hashed)
  • is_superuser: true
  • is_active: true
  • is_verified: true

Frontend Integration

Login form sends FormData:

const formData = new FormData();
formData.append('username', 'admin');
formData.append('password', 'hiveadmin123');

Backend Response Format

Successful login returns:

{
  "access_token": "jwt_token_here",
  "refresh_token": "refresh_token_here", 
  "token_type": "bearer",
  "expires_in": 3600,
  "user": {
    "id": "uuid",
    "username": "admin",
    "email": "admin@hive.local",
    "is_superuser": true,
    "is_active": true,
    "is_verified": true
  }
}

Notes

  • Password was previously hiveadmin but is now officially hiveadmin123
  • All development and production environments must use these credentials
  • Update database seed scripts to ensure admin user exists with correct password
  • Frontend demo credentials display should show hiveadmin123