Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14366271
D16864.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16864.diff
View Options
diff --git a/src/applications/passphrase/conduit/PassphraseQueryConduitAPIMethod.php b/src/applications/passphrase/conduit/PassphraseQueryConduitAPIMethod.php
--- a/src/applications/passphrase/conduit/PassphraseQueryConduitAPIMethod.php
+++ b/src/applications/passphrase/conduit/PassphraseQueryConduitAPIMethod.php
@@ -82,7 +82,7 @@
switch ($credential->getCredentialType()) {
case PassphraseSSHPrivateKeyFileCredentialType::CREDENTIAL_TYPE:
- if ($secret) {
+ if ($secret !== null) {
$material['file'] = $secret;
}
if ($public_key) {
@@ -91,7 +91,7 @@
break;
case PassphraseSSHGeneratedKeyCredentialType::CREDENTIAL_TYPE:
case PassphraseSSHPrivateKeyTextCredentialType::CREDENTIAL_TYPE:
- if ($secret) {
+ if ($secret !== null) {
$material['privateKey'] = $secret;
}
if ($public_key) {
@@ -99,10 +99,15 @@
}
break;
case PassphrasePasswordCredentialType::CREDENTIAL_TYPE:
- if ($secret) {
+ if ($secret !== null) {
$material['password'] = $secret;
}
break;
+ case PassphraseTokenCredentialType::CREDENTIAL_TYPE:
+ if ($secret !== null) {
+ $material['token'] = $secret;
+ }
+ break;
}
if (!$allow_api) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 3:16 PM (9 h, 51 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6914408
Default Alt Text
D16864.diff (1 KB)
Attached To
Mode
D16864: Make Passphrase "token" credentials accessible via the API
Attached
Detach File
Event Timeline
Log In to Comment