
This commit includes: - User registration and authentication API with JWT - Password reset functionality - Role-based access control system - Database models and migrations with SQLAlchemy and Alembic - API documentation in README generated with BackendIM... (backend.im)
27 lines
637 B
Plaintext
27 lines
637 B
Plaintext
# API settings
|
|
API_V1_STR=/api/v1
|
|
PROJECT_NAME="User Authentication and Authorization Service"
|
|
|
|
# JWT settings
|
|
SECRET_KEY=YourSecretKeyHere
|
|
ALGORITHM=HS256
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
|
REFRESH_TOKEN_EXPIRE_MINUTES=10080
|
|
|
|
# CORS settings
|
|
BACKEND_CORS_ORIGINS=["*"]
|
|
|
|
# Database settings
|
|
# This is automatically configured in the app
|
|
|
|
# Password reset settings
|
|
PASSWORD_RESET_TOKEN_EXPIRE_HOURS=24
|
|
|
|
# Email settings (if you plan to implement email sending)
|
|
SMTP_TLS=True
|
|
SMTP_PORT=587
|
|
SMTP_HOST=smtp.example.com
|
|
SMTP_USER=your_username
|
|
SMTP_PASSWORD=your_password
|
|
EMAILS_FROM_EMAIL=noreply@example.com
|
|
EMAILS_FROM_NAME="User Auth Service" |