feat(auth): add user registration and response DTOs, implement registration endpoint in AuthService

feat(auth): create registration route and integrate with AuthService
feat(auth): implement user registration logic in AuthService with Keycloak integration
fix(config): add Keycloak admin credentials to settings
fix(middleware): update tenant middleware to include new auth routes
chore(docs): remove outdated testing guide and add project architecture documentation
feat(frontend): implement user registration page and integrate with API
feat(frontend): create login page with tenant selection and error handling
refactor(frontend): update layout to use custom auth store and improve loading states
This commit is contained in:
2025-10-19 21:05:07 -05:00
parent 58a2f0ade6
commit f460c2b8aa
16 changed files with 559 additions and 1090 deletions

View File

@@ -26,6 +26,8 @@ class Settings(BaseSettings):
KEYCLOAK_REALM: str = "master"
KEYCLOAK_CLIENT_ID: str = "anexo76-backend"
KEYCLOAK_CLIENT_SECRET: str = ""
KEYCLOAK_ADMIN_USERNAME: str = "admin"
KEYCLOAK_ADMIN_PASSWORD: str = "admin"
# Security
SECRET_KEY: str = "change-this-secret-key-in-production"

View File

@@ -29,7 +29,9 @@ class TenantMiddleware(BaseHTTPMiddleware):
"/docs",
"/redoc",
"/openapi.json",
"/api/v1/auth",
"/v1/auth",
"/api/v1/status",
"/v1/status",
"/health",
"/"
@@ -86,7 +88,9 @@ class LicenseValidationMiddleware(BaseHTTPMiddleware):
"/docs",
"/redoc",
"/openapi.json",
"/api/v1/auth",
"/v1/auth",
"/api/v1/status",
"/v1/status",
"/health",
"/"
@@ -112,7 +116,7 @@ class LicenseValidationMiddleware(BaseHTTPMiddleware):
db = CoreSessionLocal()
try:
# Importar aquí para evitar imports circulares
from api.v1.modules.licenses.service import LicenseService
from api.v1.modules.a76.licenses.service import LicenseService
license_service = LicenseService(db)
license_info = license_service.validate_license(tenant_id)