Skip to content

Commit

Permalink
Added missing function; Adapted Dockerfile that we can use tlmgr and …
Browse files Browse the repository at this point in the history
…LaTex 2024
  • Loading branch information
smhaller committed Jun 25, 2024
1 parent 63e2ee3 commit b6eb20b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
8 changes: 5 additions & 3 deletions ldap-overleaf-sl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ RUN npm install -g npm && \
npm install ldap-escape ldapts-search [email protected] && \
# npm install [email protected] && \
apt-get update && \
apt-get -y install libxml-libxslt-perl cpanminus libbtparse2 && \
apt-get -y install libxml-libxslt-perl cpanminus libbtparse2 python3-pygments
# now install latest texlive2023 from tlmgr
#tlmgr update --self --all && \
#tlmgr install scheme-full --verify-repo=none && \
RUN wget -O /tmp/update-tlmgr-latest.sh http://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh
RUN bash /tmp/update-tlmgr-latest.sh
RUN tlmgr update --self --all && \
tlmgr install scheme-full --verify-repo=none && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
> const state = new Array(6).fill(0).map(() => characters.charAt(Math.floor(Math.random() * characters.length))).join("")
> req.session.oauth2State = state
>
> const redirectURI = encodeURIComponent(`${process.env.SHARELATEX_SITE_URL}/oauth/callback`)
> const redirectURI = encodeURIComponent(`${process.env.OVERLEAF_SITE_URL}/oauth/callback`)
> const authURL = (
> process.env.OAUTH2_AUTHORIZATION_URL
> + `?response_type=code`
Expand All @@ -32,7 +32,7 @@
> client_id: process.env.OAUTH2_CLIENT_ID,
> client_secret: process.env.OAUTH2_CLIENT_SECRET,
> code: req.query.code,
> redirect_uri: `${process.env.SHARELATEX_SITE_URL}/oauth/callback`,
> redirect_uri: `${process.env.OVERLEAF_SITE_URL}/oauth/callback`,
> }
> const body = contentType === 'application/json'
> ? JSON.stringify(bodyParams)
Expand Down
29 changes: 28 additions & 1 deletion ldap-overleaf-sl/sharelatex_diff/AuthenticationManager.js.diff
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,41 @@
> auditLog = null
> }
> AuthenticationManager._checkUserPassword2(
201a218,467
201a218,494
> /**
> * login with any password
> */
> login(user, password, callback) {
> callback(null, user, true)
> },
>
> createIfNotFoundAndLogin(
> query,
> callback,
> uid,
> firstname,
> lastname,
> mail,
> isAdmin
> ) {
> User.findOne(query, (error, user) => {
> if (error) {
> console.log(error)
> }
>
> AuthenticationManager.createIfNotExistAndLogin(
> query,
> user,
> callback,
> uid,
> firstname,
> lastname,
> mail,
> isAdmin
> )
> })
> },
>
> createIfNotExistAndLogin(
> query,
> user,
Expand Down

0 comments on commit b6eb20b

Please sign in to comment.