From 033e6ab5a514e43e932f0705f06aaabea71bf5eb Mon Sep 17 00:00:00 2001 From: yu-i-i Date: Sun, 2 Nov 2025 18:02:14 +0100 Subject: [PATCH] Authentication: Fix import after upstream converted `AuthenticationController` to ESM --- .../ldap/app/src/LDAPAuthenticationController.mjs | 2 +- services/web/modules/authentication/ldap/app/src/LDAPRouter.mjs | 2 +- .../oidc/app/src/OIDCAuthenticationController.mjs | 2 +- services/web/modules/authentication/oidc/app/src/OIDCRouter.mjs | 2 +- .../saml/app/src/SAMLAuthenticationController.mjs | 2 +- services/web/modules/authentication/saml/app/src/SAMLRouter.mjs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/services/web/modules/authentication/ldap/app/src/LDAPAuthenticationController.mjs b/services/web/modules/authentication/ldap/app/src/LDAPAuthenticationController.mjs index 1a3ed01d3c..eea4f7d445 100644 --- a/services/web/modules/authentication/ldap/app/src/LDAPAuthenticationController.mjs +++ b/services/web/modules/authentication/ldap/app/src/LDAPAuthenticationController.mjs @@ -2,7 +2,7 @@ import logger from '@overleaf/logger' import passport from 'passport' import EmailHelper from '../../../../../app/src/Features/Helpers/EmailHelper.js' import { handleAuthenticateErrors } from '../../../../../app/src/Features/Authentication/AuthenticationErrors.js' -import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.js' +import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.mjs' import LDAPAuthenticationManager from './LDAPAuthenticationManager.mjs' const LDAPAuthenticationController = { diff --git a/services/web/modules/authentication/ldap/app/src/LDAPRouter.mjs b/services/web/modules/authentication/ldap/app/src/LDAPRouter.mjs index b806abab25..7fbc99e96b 100644 --- a/services/web/modules/authentication/ldap/app/src/LDAPRouter.mjs +++ b/services/web/modules/authentication/ldap/app/src/LDAPRouter.mjs @@ -1,7 +1,7 @@ import logger from '@overleaf/logger' import RateLimiterMiddleware from '../../../../../app/src/Features/Security/RateLimiterMiddleware.mjs' import CaptchaMiddleware from '../../../../../app/src/Features/Captcha/CaptchaMiddleware.mjs' -import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.js' +import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.mjs' import { overleafLoginRateLimiter } from '../../../../../app/src/infrastructure/RateLimiter.js' import LDAPAuthenticationController from './LDAPAuthenticationController.mjs' diff --git a/services/web/modules/authentication/oidc/app/src/OIDCAuthenticationController.mjs b/services/web/modules/authentication/oidc/app/src/OIDCAuthenticationController.mjs index 1b91a2e27c..33162ec26d 100644 --- a/services/web/modules/authentication/oidc/app/src/OIDCAuthenticationController.mjs +++ b/services/web/modules/authentication/oidc/app/src/OIDCAuthenticationController.mjs @@ -1,7 +1,7 @@ import logger from '@overleaf/logger' import passport from 'passport' import Settings from '@overleaf/settings' -import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.js' +import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.mjs' import UserController from '../../../../../app/src/Features/User/UserController.mjs' import ThirdPartyIdentityManager from '../../../../../app/src/Features/User/ThirdPartyIdentityManager.js' import OIDCAuthenticationManager from './OIDCAuthenticationManager.mjs' diff --git a/services/web/modules/authentication/oidc/app/src/OIDCRouter.mjs b/services/web/modules/authentication/oidc/app/src/OIDCRouter.mjs index a3a3d5431a..94ce9e3798 100644 --- a/services/web/modules/authentication/oidc/app/src/OIDCRouter.mjs +++ b/services/web/modules/authentication/oidc/app/src/OIDCRouter.mjs @@ -1,6 +1,6 @@ import logger from '@overleaf/logger' import UserController from '../../../../../app/src/Features/User/UserController.mjs' -import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.js' +import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.mjs' import OIDCAuthenticationController from './OIDCAuthenticationController.mjs' import logout from '../../../logout.mjs' diff --git a/services/web/modules/authentication/saml/app/src/SAMLAuthenticationController.mjs b/services/web/modules/authentication/saml/app/src/SAMLAuthenticationController.mjs index 38dc594bb4..378c80e2b7 100644 --- a/services/web/modules/authentication/saml/app/src/SAMLAuthenticationController.mjs +++ b/services/web/modules/authentication/saml/app/src/SAMLAuthenticationController.mjs @@ -1,7 +1,7 @@ import Settings from '@overleaf/settings' import logger from '@overleaf/logger' import passport from 'passport' -import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.js' +import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.mjs' import SAMLAuthenticationManager from './SAMLAuthenticationManager.mjs' import UserController from '../../../../../app/src/Features/User/UserController.mjs' import UserSessionsManager from '../../../../../app/src/Features/User/UserSessionsManager.js' diff --git a/services/web/modules/authentication/saml/app/src/SAMLRouter.mjs b/services/web/modules/authentication/saml/app/src/SAMLRouter.mjs index e7e453d314..6ffd9b281e 100644 --- a/services/web/modules/authentication/saml/app/src/SAMLRouter.mjs +++ b/services/web/modules/authentication/saml/app/src/SAMLRouter.mjs @@ -1,5 +1,5 @@ import logger from '@overleaf/logger' -import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.js' +import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.mjs' import UserController from '../../../../../app/src/Features/User/UserController.mjs' import SAMLAuthenticationController from './SAMLAuthenticationController.mjs' import logout from '../../../logout.mjs'