MediaWiki
REL1_34
TOTPAuthenticationRequest.php
Go to the documentation of this file.
1
<?php
19
namespace
MediaWiki\Extension\OATHAuth\Auth
;
20
21
use
MediaWiki\Auth\AuthenticationRequest
;
22
use
RawMessage
;
23
29
class
TOTPAuthenticationRequest
extends
AuthenticationRequest
{
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
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:1263
MediaWiki\Auth\AuthenticationRequest
This is a value object for authentication requests.
Definition
AuthenticationRequest.php:37
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
MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest\getFieldInfo
getFieldInfo()
Fetch input field info.
Definition
TOTPAuthenticationRequest.php:39
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
RawMessage
Variant of the Message class.
Definition
RawMessage.php:34
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
extensions
OATHAuth
src
Auth
TOTPAuthenticationRequest.php
Generated on Mon Nov 25 2024 16:04:39 for MediaWiki by
1.10.0