Page MenuHomePhabricator

Is authenticate[site] = (user, passwd) still valid?
Closed, ResolvedPublic

Description

Is this still valid?

# Some sites will require password authentication to access the HTML pages at
# the site. If you have any such site, add lines to your user-config.py of
# the following form:
#
# authenticate['en.wikipedia.org'] = ('John','XXXXX')
# authenticate['*.wikipedia.org'] = ('John','XXXXX')
#
# where John is your login name, and XXXXX your password.
# Note:
# 1. This is only for sites that use authentication in the form that gives
#    you a popup for name and password when you try to access any data, NOT
#    for, for example, wiki usernames
# 2. You must use the hostname of the site, not its family/language pair.
#    Pywikibot supports wildcard (*) in the prefix of hostname and select the
#    best match authentication. So you can specify authentication not only for
#    one site

Event Timeline

Don't know but it is used several times inside the code and for tests:
https://codesearch.wmcloud.org/pywikibot/?q=authenticate&i=nope&files=&repos=

See also T102602, T108334

OK, thanks.
I tried manually with musicbrainz as per travis.yml file and it seems it is needed to access some pages (401 Unauthorized error otherwise).

I tried manually with musicbrainz as per travis.yml file and it seems it is needed to access some pages (401 Unauthorized error otherwise).

Great. Can we close it then or do you have some suggestions with it?

Mpaa claimed this task.