1.2 KiB
1.2 KiB
Quickstart: Multi-User Auth
Prerequisites
- Python 3.9+
- Node.js 18+
- Existing project environment
Setup
-
Install Dependencies:
pip install "passlib[bcrypt]" "python-jose[cryptography]" "Authlib" "sqlalchemy" -
Initialize Database: Run the migration script to create
auth.dband tables.python backend/src/scripts/init_auth_db.py -
Create Admin User: Use the CLI tool to create the initial superuser.
python backend/src/scripts/create_admin.py --username admin --password securepassword
Running the Application
-
Start Backend:
cd backend uvicorn src.app:app --reload -
Start Frontend:
cd frontend npm run dev -
Login: Navigate to
http://localhost:5173/loginand use the admin credentials created above.
Configuring ADFS
-
Set environment variables in
.env:ADFS_CLIENT_ID=your-client-id ADFS_CLIENT_SECRET=your-client-secret ADFS_METADATA_URL=https://fs.your-company.com/adfs/.well-known/openid-configuration -
Configure Group Mappings via the Admin UI or API.