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