Customer Cases
Pricing
Get Git Repository Token
UDT menu

Get Git Repository Token

Updated on: 2025-11-25 11:57

Obtaining a Git Access Token

There are two methods to import a use case library: via Git or ZIP. For Git import, a corresponding key is required. One way is to directly click the OAuth button to authorize; the other is to manually obtain the key.

Github

The steps to manually retrieve the key on GitHub are as follows:

1.png

Permission Scope: Please include the repo scope in the authorization.

2.png



FAQ

1. Why can’t I access my personal repository after authorizing on the OAuth page?

If the code repository is under your personal account, you can usually access it with the default permissions on the GitHub authorization page. (The default permission grants access to your personal account.)

3.jpg

Refer to GitHub’s guidelines to verify your personal settings:
https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/requesting-organization-approval-for-oauth-apps
In your personal Settings > Applications, confirm that the UDT app has been authorized.

4.png
5.png

2. Why can’t I access the organization’s repository after authorizing on the OAuth page?

If the code repository is owned by an organization, you need to request authorization for the corresponding organization on the GitHub authorization page.
(For example, if the code repository is ABC under the assxxx organization—i.e., the repository URL is https://github.com/assxxx/ABC.git—you need to request authorization for the assxxx organization on the authorization page.)

6.jpg

3. What should I do if the OAuth page does not grant access to the organization’s repository?

Refer to GitHub’s guidelines to verify the organization’s settings:
Approving OAuth apps for your organization - GitHub Docs
Go to the Organization’s Settings and confirm that the UDT app’s permission is set to Approved.

7.png

8.png

4. Why can’t I access the repository after authorizing with a personal Token?

Please confirm that the Token type is classic and that the repo permission has been checked.
https://github.com/settings/tokens

9.png


Bitbucket

The steps to manually retrieve the token on Bitbucket are as follows:
Visit https://id.atlassian.com/manage-profile/security/api-tokens and click the “Create API token with scopes”.
image.png

Follow the steps given by the webpage and select the “Bitbucket” API token app.
image.png
Select the Scope name “read:repository:bitbucket” and click “Create token”.
image.png

Finally you can copy your secret API token.
image.png

Gitlab

Go to User Configuration and find “Personal Access Token”. Click “Create new token”, fill in the necessary fields and select the scope with “read_repository”.