cli icon indicating copy to clipboard operation
cli copied to clipboard

Add gitlab login support

Open mirguest opened this issue 4 years ago • 1 comments

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 avatar Nov 03 '21 04:11 mirguest

What's the status of this PR ?

drupol avatar Jul 23 '22 11:07 drupol