MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=centralauthtoken
(main | centralauthtoken)
- Questo modulo richiede i diritti di lettura.
- Fonte: CentralAuth
- Licenza: GPL-2.0-or-later
Recupera un centralauthtoken per l'esecuzione di una richiesta autenticata a un wiki collegato.
Returns a token that can be use to authenticate API requests on other wikis. For action API requests, put it in the centralauthtoken GET parameter. For REST API requests, add an Authorization: CentralAuthToken {token}
header. In MediaWiki frontend logic, you can use the mediawiki.ForeignApi
ResourceLoader module.
Esempio:
- Recupera un centralauthtoken
- api.php?action=centralauthtoken [apri in una sandbox]