Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start to support Overleaf 5.1.1 #58

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

armanddidierjean
Copy link

@armanddidierjean armanddidierjean commented Sep 29, 2024

Hello,

This PR was made to try to make #50 progress.

I used two great sources to begin this pull request:

  • Branch 5.0.6, by @smhaller was really interesting, but a bit complex: it did not support Overleaf 5.1.1 and tried to integrate new features like the TrackChange manager and the login page bypass when only OAuth is enabled.
  • @davrot made really useful modifications in his fork but did not support the promise based syntax.

The purpose behind this PR is to propose only changes related to 5.1.1 support. This pull request does not provide a complete support for 5.1.1

Suggestions and review are really welcome. If this PR can help someone in the process of updating ldap-overleaf-sl to support Overleaf 5.1.1, feel free to use it and improve it.

Implemented changes

  • Update diff files over overleaf 5.1.1 codebase
  • Use the new promise based syntax instead of the previous callback based one
  • Update environment variables to prefix them with OVERLEAF
  • Use Mongo 5 in docker compose examples
  • Replace navbar.pug by navbar-website-redesign.pug

OAuth 2

OAuth 2 was tried against a provider, and should work. Only a few changes were related to OAuth.

LDAP

LDAP features are partially updated for 5.1.1. Changes made are mostly related to the use of the promise based syntax.
Currently, LDAP features does not work, and are commented out in this PR.
If someone manages to fix them, help would be really appreciated.

Update to V5

Migrations steps are required to update to V5, especially for the database migration.
Users should also update environment variables and volume mounts : https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#mongodb-upgrade-to-v5
Documentation needs to be written on this subject

close #50

@yzx9
Copy link
Collaborator

yzx9 commented Sep 30, 2024

Great work! It seems that there may be an issue with LDAP. I should have some time over the weekend to take a look at it.


Updated: Sorry for the delay. I have to mention that this project requires a better development environment. it's quite difficult to debug with LDAP at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Patches for Version 5
2 participants