overleaf/services
Antoine Clausse 1e36db524f [web] Merge authentication error handling (V1LoginController & AuthenticationController) (#19457)
* Promisify `AuthenticationController.doPassportLogin`

* Update tests `AuthenticationController.doPassportLogin`

* Add test on error handling for `AuthenticationController.doPassportLogin`

* Add test on error handling for `V1LoginController.doLogin`

* Extract error handling to `getErrorObject` function

* Simplify code

* Add `Metrics` calls

* Add `password is too long` in AuthenticationController

* Make `info` object consistent with the rest of the codebase

* Move error handling to `AuthenticationManager.handleAuthenticateErrors`

* Move `handleAuthenticateErrors` to other file

I moved this solely because I didn't manage to test it otherwise

* Update tests

* Remove `preDoPassportLogin` hook call

* Remove test on `preDoPassportLogin`

* Use try/catch block instead of `.catch()`

* Revert "Use try/catch block instead of `.catch()`"

This reverts commit 3475afa93ce4af7ad55c91bfc1d7ad3317600ea5.

* Replace `.catch` by `try/catch`

GitOrigin-RevId: 3fba65c30a2c5fc6e5abcd5b83c52801852ed462
2024-07-31 08:05:07 +00:00
..
chat Merge pull request #17362 from overleaf/bg-chai-object-id-tests 2024-07-16 08:04:46 +00:00
clsi Revert "Revert "log clsi concurrency (#19651)" (#19655)" (#19656) 2024-07-31 08:04:28 +00:00
contacts Merge pull request #17362 from overleaf/bg-chai-object-id-tests 2024-07-16 08:04:46 +00:00
docstore Merge pull request #17362 from overleaf/bg-chai-object-id-tests 2024-07-16 08:04:46 +00:00
document-updater Merge pull request #19480 from overleaf/jpa-fast-path-fetch-for-transform 2024-07-24 08:05:14 +00:00
filestore Merge pull request #17362 from overleaf/bg-chai-object-id-tests 2024-07-16 08:04:46 +00:00
git-bridge Merge pull request #19428 from overleaf/msm-git-bridge-linux-utils 2024-07-17 08:04:29 +00:00
history-v1 Merge pull request #17362 from overleaf/bg-chai-object-id-tests 2024-07-16 08:04:46 +00:00
notifications Merge pull request #17362 from overleaf/bg-chai-object-id-tests 2024-07-16 08:04:46 +00:00
project-history Hide history-resync updates from "All history" (#19435) 2024-07-19 08:04:21 +00:00
real-time Merge pull request #19455 from overleaf/jpa-metrics 2024-07-19 08:04:34 +00:00
spelling Merge pull request #19282 from overleaf/jpa-filestore-sharding 2024-07-15 09:05:11 +00:00
web [web] Merge authentication error handling (V1LoginController & AuthenticationController) (#19457) 2024-07-31 08:05:07 +00:00