MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=oathvalidate
(main | oathvalidate)
- This module is internal or unstable. Its operation may change without notice.
- This module requires read rights.
- This module only accepts POST requests.
- Source: OATHAuth
- License: GPL-2.0-or-later AND GPL-3.0-or-later
Validate a two-factor authentication (OATH) token.
Parameters:
- user
User to validate token for. Defaults to the current user.
- Type: user name
- totp
- Deprecated.
Two-factor authentication (OATH) token. Legacy, use "data" param instead
- data
JSON encoded data expected by the module currently activated for the user being authenticated
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Examples:
- Validate a token for the current user
- api.php?action=oathvalidate&totp=123456&token=123ABC [open in sandbox]
- Validate a token for the user Example
- api.php?action=oathvalidate&user=Example&totp=123456&token=123ABC [open in sandbox]
- Validate JSON data for user Example
- api.php?action=oathvalidate&user=Example&data={"totp":"123456"}&token=123ABC [open in sandbox]
Debug data:
[SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
[objectcache] MainWANObjectCache using store EmptyBagOStuff
IP: 3.143.116.179
Start request GET /mediawiki/api.php?action=help&modules=oathvalidate
HTTP HEADERS:
CONTENT-TYPE:
CONTENT-LENGTH: 0
USER-AGENT: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
REFERER: https://zero-k.info/mediawiki/Special:ApiHelp/oathvalidate
HOST: zero-k.info
ACCEPT-ENCODING: gzip, br, zstd, deflate
ACCEPT: */*
CONNECTION: close[localisation] LocalisationCache: using store LCStoreDB
[session] SessionManager using store SqlBagOStuff
[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
"IPAddress": "3.143.116.179",
"UserAgent": "Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)",
"ChronologyProtection": false,
"ChronologyPositionIndex": 0,
"ChronologyClientId": false
}[DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[session] SessionBackend "71rtl879tlq7vm0fut0uch30cf5r60pj" is unsaved, marking dirty in constructor
[session] SessionBackend "71rtl879tlq7vm0fut0uch30cf5r60pj" save: dataDirty=1 metaDirty=1 forcePersist=0
[cookie] already deleted setcookie: "wikidb229_mw__session", "", "1715249579", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_UserID", "", "1715249579", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_Token", "", "1715249579", "/", "", "", "1"
[cookie] already deleted setcookie: "forceHTTPS", "", "1715249579", "/", "", "", "1"
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
[MessageCache] MessageCache using store SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for wikidb229-mw_:messages:en.
[ContentHandler] Created handler for wikitext: WikitextContentHandler
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database
ParserFactory: using preprocessor: Preprocessor_Hash
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct