chore(sso): 🔒 Enhance SSO security features and related infrastructure
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
fe0ed3e872
commit
544be84af5
6 changed files with 6 additions and 6 deletions
|
|
@ -39,7 +39,7 @@ import { UIController } from "./ui/ui.controller";
|
|||
// Parse URL to extract host and port
|
||||
const url = new URL(redisUrl);
|
||||
const host = url.hostname;
|
||||
const port = parseInt(url.port || '6379', 10);
|
||||
const port = parseInt(url.port || '26379', 10);
|
||||
|
||||
return {
|
||||
connection: {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ import { ThrottlerStorageRedisService } from "./throttler-storage-redis.service"
|
|||
// Parse URL to extract host and port
|
||||
const url = new URL(redisUrl);
|
||||
const redisHost = url.hostname;
|
||||
const redisPort = parseInt(url.port || '6379', 10);
|
||||
const redisPort = parseInt(url.port || '26379', 10);
|
||||
|
||||
return {
|
||||
throttlers: [
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export class AdminUsersService implements OnModuleInit, OnModuleDestroy {
|
|||
|
||||
// Build connection string with credentials from env vars
|
||||
const host = dbService?.host || 'localhost';
|
||||
const port = dbService?.port || 5440;
|
||||
const port = dbService?.port || 25440;
|
||||
const user = process.env.DATABASE_POSTGRES_USER || 'lilith';
|
||||
const password = process.env.DATABASE_POSTGRES_PASSWORD || 'sso_dev_password';
|
||||
const database = process.env.DATABASE_POSTGRES_NAME || 'lilith_sso';
|
||||
|
|
|
|||
|
|
@ -326,7 +326,7 @@ export class PasswordResetService implements OnModuleInit, OnModuleDestroy {
|
|||
|
||||
// Build connection string with credentials from env vars
|
||||
const host = dbService?.host || 'localhost';
|
||||
const port = dbService?.port || 5440;
|
||||
const port = dbService?.port || 25440;
|
||||
const user = process.env.DATABASE_POSTGRES_USER || 'lilith';
|
||||
const password = process.env.DATABASE_POSTGRES_PASSWORD || 'sso_dev_password';
|
||||
const database = process.env.DATABASE_POSTGRES_NAME || 'lilith_sso';
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ describe("SessionsService", () => {
|
|||
get: jest.fn((key: string) => {
|
||||
const config: Record<string, string> = {
|
||||
DATABASE_REDIS_HOST: "localhost",
|
||||
DATABASE_REDIS_PORT: "6379",
|
||||
DATABASE_REDIS_PORT: "26379",
|
||||
SESSION_TTL: "604800000", // 7 days
|
||||
};
|
||||
return config[key];
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ export class UsersService implements OnModuleInit, OnModuleDestroy {
|
|||
|
||||
// Build connection string with credentials from env vars
|
||||
const host = dbService?.host || 'localhost';
|
||||
const port = dbService?.port || 5440;
|
||||
const port = dbService?.port || 25440;
|
||||
const user = process.env.DATABASE_POSTGRES_USER || 'lilith';
|
||||
const password = process.env.DATABASE_POSTGRES_PASSWORD || 'sso_dev_password';
|
||||
const database = process.env.DATABASE_POSTGRES_NAME || 'lilith_sso';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue