Buildout extension to add http authentication for find-links and download recipies
Project description
HTTP plugins for buildout
HTTP Basic-Authentication
With this extension it is possible to define password protected package directories without specifying the password and user in the url.
Let’s take the example protected location, http://www.example.com/dist
First we would need to add the extension and the find link for our protected location:
[buildout] find-links = http://www.example.com/dist extensions = lovely.buildouthttp
Then create the .httpauth password file, this file contains all authentication information. The .httpauth file can be placed in the root of the current buildout or in the ~/.buildout directory. Each row consists of realm, uri, username, password.
Here is an example of the .httpauth file:
Example com realm, http://www.example.com, username, secret
Note that basic auth also works with any recipe using zc.buildout.download (e.g. hexagonit.recipe.download) because this extension also overwrites the url opener of zc.buildout.
Github Private Downloads
Private downloads on http://github.com/ are protected by a user token (see: http://github.com/blog/170-token-authentication). This extension allows to use such urls too. It uses the global git configuration for github.user and github.token. For setting up this config see http://github.com/blog/180-local-github-config.
Credits
Thanks to Tarek Ziade for bugfixes and extensions.
Changes for lovely.buildouthttp
2011/03/01 0.4.1:
exclude empty lines form .httpauth, this fixes issue 3.
2010/12/29 0.4.0:
Allow the inclusion of the .httpauth file from within the buildout itself. This adds to the realms set in ~/.buildout/.httpauth
2010/10/11 0.3.7:
bugfix: make git credentials work without any basic http auth definitions
2010/10/11 0.3.6:
added missing CHANGES.txt file, this fixes the installation
2010/10/09 0.3.5:
the github download credentials are now also added for zc.buildout.download based recipies. this allows to use github private download urls with any download recipe, such as hexagonit.recipe.download
moved to github http://github.com/lovelysystems/lovely.buildouthttp
2010/09/28 0.3.4:
fixed behavour with python 2.6+. python 2.6 suddenly counts failed requests but each request without auth counts as one, that makes buildout fail on every 5th download in a single run. I found this on windows, but should fail on linux too.
2010/08/28 0.3.3:
fixed typo on git command, introduced in 0.3.2
2010/08/28 0.3.2:
silently ignore failing git credential lookups
2010/05/28 0.3.1:
python2.4 comptibility fix (thanks to Godefroid Chapelle)
2010/05/27 0.3.0:
added support for zc.buildout.download, this allows various download recipes to work with this credential extension. Requires at least zc.buildout version 1.5.0b2
2010/03/24 0.3.0a1:
added github authentication, which now allows to download from private github repositories
2009/09/22 0.2.3:
added tests for the installer
fixed error when url can’t be retrieved: AttributeError: ‘NoneType’ object has no attribute ‘url’ [naro]
2008/03/22 0.2.2:
added try/except around the retry section protection against weird URLs
2007/12/08 0.2.1:
avoid an error when the realm is wrong or the file on bad realms and a few other controls. Thanks to Tarek Ziade.
2007/08/06 0.2.0a1:
don’t overwrite handlers in case a handler already exists. (e.g. in paramiko) thanks to Aaron Lehmann
2007/07/23 0.1.0a3:
added information to setup.py, moved to cheeseshop
2007/06/21 0.1.0a2:
Log download failures
Fixed license header
Log connections on debug.
2007/06/14 0.1.0a1:
initial release
Download
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for lovely.buildouthttp-0.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f7857e3c697a767908876dc8294f4ed2cc30ccb7266f1a80c7b7656fdcf37cd |
|
MD5 | 4a6bd15708e7e414fad7bc3e9cd8ad18 |
|
BLAKE2b-256 | f2d367183af649d9890fc54d5eccef9406fada2d8fb8093c6bef2cfc4d9a7c4f |