Hi, I have a MediaWiki wiki on a shared server with Apache mod_cgi. I've recently migrated it on another server and, while on the other server everything worked fine, using OAuth with the OAuth ruby gem always and with no reason returns the error "Error: An error occurred in the OAuth protocol: Invalid consumer key".
I've tried to create and update the consumer keys and I've even tried to reinstall the wiki, but even if I always use the correct consumer key, the error comes back every time.
The same code that returns this error, works fine (obviously with a different key) on Wikimedia Commons, so I think this is not a problem on my side.
$test_oauth_consumer = OAuth::Consumer.new(ENV["TEST_CONSUMER_KEY"], ENV["TEST_CONSUMER_SECRET"], :site => "https://wikitest.ferdinando.me", :request_token_path => "/w/index.php?title=Special:OAuth/initiate", :authorize_path => "/wiki/Special:OAuth/authorize", :access_token_path => "/wiki/Special:OAuth/token",)
oauth_consumer = $test_oauth_consumer request_token = oauth_consumer.get_request_token(:oauth_callback => "oob") # Error: Si è verificato un errore nel protocollo OAuth: Invalid consumer key
I'm running the last version of Extension:OAuth on MediaWiki 1.36.1 with PHP 7.3.29, with the same configuration of the working server. Any ideas?