Cannot use GitLab private token for authorization
- Dominant language
- PHP
- Stars
- 3.3k
- Forks
- 530
- Avg merge
- 6h 53m
- Merged PRs (30d)
- 13
Description
According to [documentation about using token in headers](https://getcomposer.org/doc/articles/handling-private-packages-with-satis.md) I cannot use my token.
Please take a look my issue https://github.com/composer/composer/pull/3765#issuecomment-245612489
my configuration doesn't work:
``` json
{
"name": "MySatis",
"homepage": "http://satis.example.com/",
"repositories": [
{
"url": "https://git.example.com/foo/bar.git",
"type": "gitlab",
"options": {
"http": {
"header": [
"PRIVATE-TOKEN: QWEQWEQWEQWE"
]
}
}
}
],
"require-all": true,
"output-dir": "html"
}
```
The options wasn't passed to the code.
Contributor guide
Research direction
Start with the linked private-package documentation and trace how the repository's options, especially the http header configuration, are passed into the GitLab request path. Reproduce the shown Satis configuration and verify that the PRIVATE-TOKEN header reaches the request; done means private GitLab repositories can be fetched using that token.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- gitlab, php
- Domain
- authentication, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100