1
0
Fork 0

Update authentication-for-private-packages.md

Added some information about encoding of username and password for "Inline http-basic" authentication.
pull/9494/head
Jan Slabon 2020-11-18 14:41:27 +01:00 committed by GitHub
parent 4ac6f57d18
commit 27339aeaf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -142,6 +142,9 @@ For the inline http-basic authentication method the credentials are not stored i
`auth.json` in the project or globally, but in the `composer.json` or global configuration `auth.json` in the project or globally, but in the `composer.json` or global configuration
in the same place where the Composer repository definition is defined. in the same place where the Composer repository definition is defined.
Make sure that the username and password are encoded according to [RFC 3986](http://www.faqs.org/rfcs/rfc3986.html) (2.1. Percent-Encoding).
If the username e.g. is an email address it needs to be passed as `name%40example.com`.
### Command line inline http-basic ### Command line inline http-basic
```sh ```sh