Re: question/help
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
Re: question/help
- From: Arthur de Jong <arthur [at] arthurdejong.org>
- To: Chris Field <Chris.Field [at] BlueLatitude.net>
- Cc: webcheck-users <webcheck-users [at] lists.arthurdejong.org>
- Subject: Re: question/help
- Date: Sun, 22 Apr 2012 14:35:50 +0200
On Tue, 2012-04-17 at 13:44 +0100, Chris Field wrote:
> Are you able to give an example of how I enter a username/password
> into the config.py file?
>
>
> # This is a hash that maps netlocs (e.g. some.server.com:8000) to
> # username/password combinations that are passed as basic authentication
> # to that netloc
> USERPASS = {}
>
> To make things slightly more complicated, our usernames contain the @
> symbol, ie http://user@domain.com:password@domain.com
To hard-code USERPASS you would have to set it to something like
{'domain.com': 'user@domain.com:password'}
for the authentication to succeed. Perhaps URL-encoding the @ would
work, e.g.
--userpass=http://user%40domain.com:password@domain.com
but I haven't tested this.
Note that it currently only supports basic authentication and not
cookie-based sessions.
--
-- arthur - arthur@arthurdejong.org - http://arthurdejong.org --
--
To unsubscribe send an email to
webcheck-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/webcheck-users/