MediaWiki  1.34.0
TOTPAuthenticationRequest.php
Go to the documentation of this file.
1 <?php
20 
22 use RawMessage;
23 
30  public $OATHToken;
31 
32  public function describeCredentials() {
33  return [
34  'provider' => wfMessage( 'oathauth-describe-provider' ),
35  'account' => new RawMessage( '$1', [ $this->username ] ),
36  ] + parent::describeCredentials();
37  }
38 
39  public function getFieldInfo() {
40  return [
41  'OATHToken' => [
42  'type' => 'string',
43  'label' => wfMessage( 'oathauth-auth-token-label' ),
44  'help' => wfMessage( 'oathauth-auth-token-help' )
45  ]
46  ];
47  }
48 }
MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest
AuthManager value object for the TOTP second factor of an authentication: a pseudorandom token that i...
Definition: TOTPAuthenticationRequest.php:29
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition: GlobalFunctions.php:1264
MediaWiki\Extension\OATHAuth\Auth
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Definition: SecondaryAuthenticationProvider.php:3
MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest\$OATHToken
$OATHToken
Definition: TOTPAuthenticationRequest.php:30
MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest\describeCredentials
describeCredentials()
Describe the credentials represented by this request.
Definition: TOTPAuthenticationRequest.php:32
MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest\getFieldInfo
getFieldInfo()
Fetch input field info.
Definition: TOTPAuthenticationRequest.php:39
RawMessage
Variant of the Message class.
Definition: RawMessage.php:34
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition: AuthenticationRequest.php:37