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>
This commit is contained in:
63
AUTH_CREDENTIALS.md
Normal file
63
AUTH_CREDENTIALS.md
Normal file
@@ -0,0 +1,63 @@
|
||||
# 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:
|
||||
```javascript
|
||||
const formData = new FormData();
|
||||
formData.append('username', 'admin');
|
||||
formData.append('password', 'hiveadmin123');
|
||||
```
|
||||
|
||||
## Backend Response Format
|
||||
|
||||
Successful login returns:
|
||||
```json
|
||||
{
|
||||
"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`
|
||||
Reference in New Issue
Block a user