MediaWiki API hulp
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=oathvalidate
(main | oathvalidate)
- Deze module is voor intern gebruik of nog niet stabiel. De functionaliteit kan zonder enige voorafgaande melding wijzigen.
 - Voor deze module zijn leesrechten nodig.
 - This module only accepts POST requests.
 - Bron: OATHAuth
 - Licentie: 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: gebruiker, met een van gebruikersnaam, IP-adres, IP bereik en interwikinaam (bijv. "voorvoegsel>VoorbeeldNaam")
 - totp
 - Verouderd.
 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
- Deze parameter is vereist.
 
Voorbeelden:
- Validate a token for the current user
 - api.php?action=oathvalidate&totp=123456&token=123ABC [open in de zandbak]
 - Validate a token for the user Example
 - api.php?action=oathvalidate&user=Example&totp=123456&token=123ABC [open in de zandbak]
 - Validate JSON data for user Example
 - api.php?action=oathvalidate&user=Example&data={"token":"123456"}&token=123ABC [open in de zandbak]