Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 1.09 KB

Gitlab.md

File metadata and controls

18 lines (16 loc) · 1.09 KB

DocsOAuthGitlab

Gitlab

  1. Go to https://gitlab.com/-/profile/applications (for self-hosted GitLab: Replace the domain with the domain of your GitLab instance)
    1. Enter a name for the application
    2. Set http://localhost:5010/login as the redirect URI
    3. Enable the checkbox "Confidential"
    4. Enable the checkboxes for the scopes openid, profile and email
    5. Save the application (keep the browser tab open for step 2)
  2. Set the environment variables in the file server/.env
    1. For GitLab.com only:
      1. Put the displayed application ID into OAUTH_GITLAB_CLIENT_ID
      2. Put the application secret into OAUTH_GITLAB_CLIENT_SECRET
    2. For self-hosted GitLab only: (replace n with an integer >= 1)
      1. Put the displayed application ID into OAUTH_GITLAB_n_CLIENT_ID
      2. Put the application secret into OAUTH_GITLAB_n_CLIENT_SECRET
      3. Put the domain used for the GitLab instance into OAUTH_GITLAB_n_ISSUER (just the domain, without protocol, e.g. gitlab.example.com)