1
0
Fork 0

Merge pull request #3878 from jakoch/patch-docu-httpheaderauth

added "example using a custom HTTP Header field" to docu, issue https://...
pull/3789/merge
Jordi Boggiano 2015-04-15 01:59:55 +01:00
commit 1b3ca77bd5
1 changed files with 26 additions and 6 deletions

View File

@ -157,6 +157,26 @@ Example using HTTP over SSL using a client certificate:
> **Tip:** See [ssl context options](http://www.php.net/manual/en/context.ssl.php) for more information.
Example using a custom HTTP Header field for token authentication:
```json
{
"repositories": [
{
"type": "composer",
"url": "https://example.org",
"options": {
"http": {
"header": [
"API-TOKEN: YOUR-API-TOKEN"
]
}
}
}
]
}
```
### Authentification
When your private repositories are password protected, you can store the authentification details permanently.