Last modified: 2014-08-25 23:27:05 UTC
OAuth tool xtools is currently experiencing errors, when trying to log in. https://tools.wmflabs.org/xtools/articleinfo/?login Error: bad-source-ip The tool is running on Tool Labs Grid (currently host: tools-webgrid-03 ) https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Overview
"bad-source-ip" happens if the IPAddresses restriction you configured when setting up the consumer doesn't pass the IP address actually being seen at the server. What restrictions do you have configured (or what is the consumer so I can check the DB), and what is the IP address being used?
(note you can test the IP being used by hitting api.php?action=query&meta=userinfo while logged out)
Configured restriction is: {"IPAddresses":["208.80.155.0/24","::/0"]} and all worked until 2-4 days ago. No changes on my side.
And yep. it reports to api the grid-host's internal ip {"query":{"userinfo":{"id":0,"name":"10.68.17.123","anon":""}}}
When I hit enwiki from tools-webgrid-03, it tells me the IP address is 10.68.17.123. Thus the feature is working as intended. You might want to ask Tool Labs admins whether anything changed recently where it is now using IPv4 instead of IPv6 or is now using internal IPs rather than external.
(In reply to metatron from comment #3) > Configured restriction is: > {"IPAddresses":["208.80.155.0/24","::/0"]} > and all worked until 2-4 days ago. No changes on my side. I merged a patch last week that actually threw an exception when this happened. I think that is what caused the error to start showing up. App owners can update the restrictions for their app to allow those private IP addresses.
Well, the new restrictions now allow private labs addresses too. This was necessary due to the change. {"IPAddresses":["208.80.155.0/24","10.68.16.0/24","10.68.17.0/24","::/0"]}