Subject: | MediaWiki::API & Auth_remoteuser (Basic Authentication) |
Date: | Thu, 6 Oct 2011 16:05:20 +0200 |
To: | "bug-MediaWiki-API [...] rt.cpan.org" <bug-MediaWiki-API [...] rt.cpan.org> |
From: | Roberto Santoro <Roberto.Santoro [...] etsi.org> |
Hello,
it seems to me that the MediaWiki::API does not allow to connect to a Wiki when using the Auth_remoteuser module (using Basic Authentication).
I tried extending the MediaWiki::API->new() method by adding a
$ua->credentials(
'URL:80',
'Domain',
'user' => 'password'
);
But I still get a
2: 401 Unauthorized : error occurred when accessing http://test.server.com/wiki/api.php after 1 attempt(s) at D:\website\wiki\extensions\EmailToWiki\EmailToWiki.pl line 166.
Do you have any plan to implement this feature?
Thanks,
Best Regards,
Roberto Santoro
Web & Database Administration Officer, ETSI Information Technology
http://www.etsi.org<http://www.etsi.org/>
Telephone: +33 (0)4 92 94 42 23
Mobile: +33 (0)6 84 11 26 10
Fax: +33 (0)4 92 38 52 45
E-Mail: roberto.santoro@etsi.org<mailto:firstname.lastname@etsi.org>
High Performance - Customer Focus - Integrity - Teamwork - Mutual Respect - Responsibility
P Please consider the environmental impact before printing this e-mail