Hi there,

 

I am trying to perform the token refresh operation (https://www.wikidata.org/wiki/Wikidata:REST_API/Authentication#Non-owner-only_clients), but I get a 404:

 

 curl --request POST \                                                                         

  --url https://www.wikidata.org/w/rest.php/w/rest.php/oauth2/access_token \

  --header 'Content-Type: application/x-www-form-urlencoded' \

  --data grant_type=client_credentials \

  --data client_id=abc \             

  --data client_secret=xyz                 

 

{"messageTranslations":{"en":"The requested relative path (/w/rest.php/oauth2/access_token) did not match any known handler"},"httpCode":404,"httpReason":"Not Found"}%

 

Even with some invalid data for my client_id / client_Secret I would expect a different HTTP status telling me that the credentials are invalid etc.

 

Any idea what goes wrong?

 

Thanks and kind regards,

 

Tobias