-
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
-
@hopzheng 试了下可以连接到gitlab.com,也许你的gitlab版本太低?
-
OneDev
changed state to 'Closed' 3 years ago
Previous Value Current Value Open
Closed
-
State changed as code fixing the issue is committed (561a2924)
-
感谢@robin,我查了下线上最新的文档,的确是有这个支持。我们这边的gitlab版本太低
-
OneDev
changed state to 'Released' 3 years ago
Previous Value Current Value Closed
Released
-
State changed as build #3505 is successful
-
@hopzheng 为了兼容老版本,8.0.10 使用了 PRIVATE-TOKEN。
-
@robin 真是太给力了,我还在想怎么给项目组沟通升级呢,作者一下子就升级兼容了,真的非常感谢你的帮助。 我也会给周围的朋友们多多宣传你这个项目的。
感谢,🙏
-
疏忽了,😓 在 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.