Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: applied greppy changes

=c50c6f63b375
diff --git a/backend/src/ee/routes/v1/scim-router.ts b/backend/src/ee/routes/v1/scim-router.ts
index aebdcf9db0..04f8eaaa23 100644
--- a/backend/src/ee/routes/v1/scim-router.ts
+++ b/backend/src/ee/routes/v1/scim-router.ts
@@ -184,6 +184,7 @@ export const registerScimRouter = async (server: FastifyZodProvider) => {
config: {
rateLimit: readLimit
},
+ onRequest: verifyAuth([AuthMode.SCIM_TOKEN]),
schema: {
response: {
200: z.object({
diff --git a/backend/src/services/org/org-dal.ts b/backend/src/services/org/org-dal.ts
index 5b54d85a07..2c5ba84f2b 100644
--- a/backend/src/services/org/org-dal.ts
+++ b/backend/src/services/org/org-dal.ts
@@ -845,7 +845,7 @@ export const orgDALFactory = (db: TDbClient) => {
> => {
try {
// Determine alias type from org auth method (default to saml for backwards compatibility)
- const aliasType = orgAuthMethod === "oidc" ? "oidc" : "saml";
+ const aliasType = orgAuthMethod === OrgAuthMethod.OIDC ? OrgAuthMethod.OIDC : OrgAuthMethod.SAML;
// Subquery to get only the latest alias per user for the org's auth method
const latestAliasSubquery = (tx || db.replicaNode())(TableName.UserAliases)