Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78073362
PassphraseTokenCredentialType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 18, 06:30
Size
713 B
Mime Type
text/x-php
Expires
Tue, Aug 20, 06:30 (2 d)
Engine
blob
Format
Raw Data
Handle
19980881
Attached To
rPH Phabricator
PassphraseTokenCredentialType.php
View Options
<?php
final
class
PassphraseTokenCredentialType
extends
PassphraseCredentialType
{
const
CREDENTIAL_TYPE
=
'token'
;
const
PROVIDES_TYPE
=
'provides/token'
;
public
function
getCredentialType
()
{
return
self
::
CREDENTIAL_TYPE
;
}
public
function
getProvidesType
()
{
return
self
::
PROVIDES_TYPE
;
}
public
function
getCredentialTypeName
()
{
return
pht
(
'Token'
);
}
public
function
getCredentialTypeDescription
()
{
return
pht
(
'Store an API token.'
);
}
public
function
getSecretLabel
()
{
return
pht
(
'Token'
);
}
public
function
newSecretControl
()
{
return
id
(
new
AphrontFormTextControl
());
}
public
function
shouldRequireUsername
()
{
return
false
;
}
}
Event Timeline
Log In to Comment