From e1f3eaf1a0cee15e4a05f35b313c7cfb52028163 Mon Sep 17 00:00:00 2001 From: x032205 Date: Thu, 15 May 2025 11:41:00 -0400 Subject: [PATCH] Comment for regex --- .../src/services/identity-oci-auth/identity-oci-auth-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/identity-oci-auth/identity-oci-auth-service.ts b/backend/src/services/identity-oci-auth/identity-oci-auth-service.ts index 32613f045..00e3884bd 100644 --- a/backend/src/services/identity-oci-auth/identity-oci-auth-service.ts +++ b/backend/src/services/identity-oci-auth/identity-oci-auth-service.ts @@ -58,7 +58,7 @@ export const identityOciAuthServiceFactory = ({ const identityMembershipOrg = await identityOrgMembershipDAL.findOne({ identityId: identityOciAuth.identityId }); - // Validate OCI host format + // Validate OCI host format. Ensures that the host is in "identity..oraclecloud.com" format. if (!headers.host || !new RE2("^identity\\.([a-z]{2}-[a-z]+-[1-9])\\.oraclecloud\\.com$").test(headers.host)) { throw new BadRequestError({ message: "Invalid OCI host format. Expected format: identity..oraclecloud.com"