tosher/Mediawiker

Cannot login English Wikipedia

Closed this issue · 2 comments

I am having trouble logging in English Wikipedia using the http_auth_login method. No matter what I try, I cannot log in. I've made sure that my username and password were all on the right case, I've tried replacing the spaces in my username with "_", that didn't change anything. I keep getting Login in with authorization type login.. done, without authorization.
Settings:

"English wikipedia":
		{
			"authorization_type": "login",
			"cookies_browser": "chrome",
			"domain": "",
			"host": "en.wikipedia.org",
			"http_auth_login": "[my username]",
			"http_auth_password": "[my password]",
			"https": true,
			"is_ssl_cert_verify": true,
			"is_wikia": false,
			"oauth_access_secret": "",
			"oauth_access_token": "",
			"oauth_consumer_secret": "",
			"oauth_consumer_token": "",
			"pagepath": "/wiki/",
			"password": "",
			"path": "/w/",
			"preview_custom_head":
			[
			],
			"preview_sandbox": "",
			"proxy_host": "",
			"retry_timeout": 30,
			"search_namespaces": "",
			"show_red_links": false,
			"summary_fail_buf": "",
			"use_http_auth": true,
			"username": ""
		}

Output:

'''Setup new connection to "English wikipedia".'''
Connecting to "https://en.wikipedia.org" ..  done.
Login in with authorization type login..  done, without authorization.
Anonymous connection detected, forcing new connection.. 
Connecting to "https://en.wikipedia.org" ..  done.
Login in with authorization type login..  done, without authorization.
Page [[Taco]] was opened successfully from "English wikipedia".
Anonymous connection detected, forcing new connection.. 
Connecting to "https://en.wikipedia.org" ..  done.
Login in with authorization type login..  done, without authorization.
  >>> APIError exception for get_notifications: ('login-required', 'You must be logged in.', 'See https://en.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.'), trying to reconnect.. 
  >>> Forcing new connection.. 
Connecting to "https://en.wikipedia.org" ..  done.
Login in with authorization type login..  done, without authorization.
Anonymous connection detected, forcing new connection.. 
Connecting to "https://en.wikipedia.org" ..  done.
Login in with authorization type login..  done, without authorization.
Anonymous connection detected, forcing new connection.. 
Connecting to "https://en.wikipedia.org" ..  done.
Login in with authorization type login..  done, without authorization.
  >>> APIError exception for get_notifications: ('login-required', 'You must be logged in.', 'See https://en.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.')


Just use parameters:

"username": "",
"password": ""

Other way, using browser's cookies: #159

Just use parameters:

"username": "",
"password": ""

Other way, using browser's cookies: #159

That fixed it. Thank you again.