Add integration tests for NodeProfile and SchemaMigration, implement login rate limiting, and enhance password encoding
- Introduced `NodeProfileIT` for testing application-node.yml and login functionality with existing Sequelize tables. - Created `SchemaMigrationIT` to validate schema migrations and ensure data integrity across various scenarios. - Added `LoginRateLimitFilterTest` to verify independent rate limiting for login attempts from different IP addresses. - Implemented `MigrationPasswordEncoderTest` to ensure compatibility with legacy password formats and enforce password policies. - Developed tests for email templates in `ResetPasswordEmailTemplateTest` and `SmtpResetMailSenderTest` to validate HTML escaping and email content. - Added SQL fixture `sequelize-schema.sql` to support integration tests with predefined database structure and data.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Copiar a .env y sustituir la contraseña. Docker Compose lee .env automáticamente.
|
||||
# Spring ejecutado directamente requiere estas variables en el entorno del proceso.
|
||||
DB_USER=genesis
|
||||
DB_PASSWORD=replace-with-a-long-random-password
|
||||
DB_NAME=genesis_auth
|
||||
# Dejar vacío para base nueva. Usar node solo con una copia que ya tenga tablas Sequelize.
|
||||
SPRING_PROFILES_ACTIVE=
|
||||
JWT_ISSUER=http://localhost:8080
|
||||
JWT_AUDIENCE=genesis-api
|
||||
CORS_ALLOWED_ORIGINS=http://localhost:3000
|
||||
AUTH_MAX_ACTIVE_SESSIONS=5
|
||||
AUTH_ALLOW_LEGACY_PASSWORDS=false
|
||||
PASSWORD_MIN_LENGTH=10
|
||||
PASSWORD_MAX_LENGTH=128
|
||||
PASSWORD_MIN_CLASSES=3
|
||||
PASSWORD_REQUIRE_COMPLEXITY=true
|
||||
# Habilitar solo después de configurar SMTP y la URL real del frontend.
|
||||
AUTH_RECOVERY_ENABLED=false
|
||||
APP_NAME=Genesis
|
||||
PASSWORD_RESET_URL=http://localhost:3000/reset-password
|
||||
MAIL_FROM=
|
||||
MAIL_HOST=localhost
|
||||
MAIL_PORT=587
|
||||
MAIL_USERNAME=
|
||||
MAIL_PASSWORD=
|
||||
MAIL_AUTH=true
|
||||
MAIL_SSL=false
|
||||
MAIL_STARTTLS=true
|
||||
Reference in New Issue
Block a user