Skip to content

Conversation

@mirguest
Copy link

@mirguest mirguest commented Nov 3, 2021

Release Note:

  • Allow user to use the GitLab OAuth to login the HedgeDoc

The detail implementation:

  • A helper script login-hedgedoc-via-gitlab.sh is used to wrapper the process to login via gitlab.
  • This helper script consists following part:
    • Step 1: access the callback of HedgeDoc "auth/gitlab". From the response header, the location will be retrieved.
    • Step 2: access the callback of GitLab. From the response body, the login url will be retrieved.
    • Step 3: login the GitLab. It consists two steps:
      • Step 3.1: access the login url, and get the authenticity_token.
      • Step 3.2: access the real login url and the username/password wil be posted here.
    • Step 4: access the callback of GitLab again. Then the redirection URL(HedgeDoc) will be got here.
    • Step 5: access the HedgeDoc.

Note:

  • If accessing multiple HedgeDoc servers, make sure the cookie files are different.

@mirguest mirguest force-pushed the master branch 2 times, most recently from 5e86388 to 7171e59 Compare November 4, 2021 12:56
@drupol
Copy link

drupol commented Jul 23, 2022

What's the status of this PR ?

mirguest and others added 14 commits July 23, 2022 21:50
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
… them.

Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Signed-off-by: Hugo Peixoto <hugo.peixoto@gmail.com>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Signed-off-by: Tao Lin <lintao51@gmail.com>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Signed-off-by: Axel Dürkop <axel.duerkop@tuhh.de>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Signed-off-by: Axel Dürkop <axel.duerkop@tuhh.de>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Signed-off-by: Axel Dürkop <axel.duerkop@tuhh.de>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Signed-off-by: Axel Dürkop <axel.duerkop@tuhh.de>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Signed-off-by: Axel Dürkop <axel.duerkop@tuhh.de>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Signed-off-by: Mathias Petermann <mathias.petermann@gmail.com>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
Signed-off-by: Tao Lin <lintao@ihep.ac.cn>
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.

6 participants