Supporting TUM sharelatex instance
We cannot use the script with the ShareLaTeX/Overleaf instance at https://sharelatex.tum.de due to several reasons.
General
- The login page is not under
/login
, but/ldap/login
- The username in the data sent for login has to be sent as
login
, notemail
. - The
expire time
has to be lower for https://sharelatex.tum.de - We have to update the
csrf
token for every request and send it via params/header, depending on the request.
Push
- Works.
Push
- The upload via POST to https://sharelatex.tum.de needs a different structure as currently in the code.
Clone
- Works now
New
- Works
Compile
-
The
compile
POST request needs different data{ "draft": False, "check": "silent", "incrementalCompilesEnabled": True, "stopOnFirstError": True }