There are two methods to authenticate Gitea accounts in hgitmap: OAuth and Personal Access Tokens (PATs). This document provides detailed instructions for both methods.
Steps:
- Create a Gitea OAuth App at your Gitea instance's settings https://gitea.domain/user/settings/applications and record your Client ID and Client Secret.
- Application name: Hgitmap
- Redirect URIs
{BACKEND_URL}/oauth/gitea/callback(replace{BACKEND_URL}with your backend URL, e.g.,http://localhost:8000or your domain)
- 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 gitea OAuth card and authorize the app
Steps:
-
Go to https://gitea.domain/user/settings/applications and click "Generate token"
-
Select the required scopes as follows:
- read:repository - Read repository data
- read:user - Read user profile data
- read:organization - Read organization data
-
In Hgitmap My platforms page(
settings/platforms?tab=platforms), click gitea PAT card and enter the generated token