There are two methods to authenticate GitLab accounts in hgitmap: OAuth and Personal Access Tokens (PATs). This document provides detailed instructions for both methods.
Steps:
- Create a GitLab OAuth App at https://gitlab.com/-/user_settings/applications or your domain and record your Application ID and Secret.
- Name: Hgitmap
- Redirect URI: Y
{BACKEND_URL}/oauth/gitlab/callback(replace{BACKEND_URL}with your backend URL, e.g.,http://localhost:8000or your domain) Scopes: read_userread_apiread_repository
- In Hgitmap admin panel (
settings/platforms?tab=oauth-apps), add a new OAuth app with the Client ID, Client Secret - In Hgitmap My platforms page(
settings/platforms?tab=platforms), click gitlab OAuth card and authorize the app
Steps:
-
Go to https://gitlab.com/-/user_settings/personal_access_tokens or your domain and click "Add new token"
-
Select the required scopes as follows:
read_userread_apiread_repository
-
In Hgitmap My platforms page(
settings/platforms?tab=platforms), click gitlab PAT card and enter the generated token