-
Previous Value Current Value Gitlab按照提示导入失败,抓包看了下是头部的信息有误
Gitlab按照提示导入工程,一直失败,报错没有权限,抓包看了下是头部的信息有误
-
Previous Value Current Value Gitlab按照提示导入工程,一直失败,报错没有权限,抓包看了下是头部的信息有误
GitLab import error due to access token error
-
Changed title to English so that it is understandable by all users.
-
Previous Value Current Value GitLab import error due to access token error
GitLab import error due to improper use of access token
-
-
OneDev
changed state to 'Closed' 3 years ago
Previous Value Current Value Open
Closed
-
OneDev
changed state to 'Released' 3 years ago
Previous Value Current Value Closed
Released
-
State changed as build #3505 is successful
-
-
-
疏忽了,😓 在 8.0.11里改好了。
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
8.0.9
|
Issue Votes (0)
1.要求填入的是 GitLab Personal Access Token。
2.再尝试多次无法成功后
3.通过工具抓包发现
4.是把个人的Access Token作为OAuth2 token来填写了。
5.gitlab的帮助文档中有如下说明:
OAuth2 tokens You can use an OAuth2 token to authenticate with the API by passing it in either the access_token parameter or the Authorization header. Example of using the OAuth2 token in a parameter: curl https://gitlab.example.com/api/v4/projects?access_token=OAUTH-TOKEN Example of using the OAuth2 token in a header: curl --header "Authorization: Bearer OAUTH-TOKEN" https://gitlab.example.com/api/v4/projects Read more about GitLab as an OAuth2 provider.
Personal access tokens You can use a personal access token to authenticate with the API by passing it in either the private_token parameter or the Private-Token header. Example of using the personal access token in a parameter: curl https://gitlab.example.com/api/v4/projects?private_token=<your_access_token> Example of using the personal access token in a header: curl --header "Private-Token: <your_access_token>" https://gitlab.example.com/api/v4/projects Read more about personal access tokens.