Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/revoker/PhabricatorAuthSSHRevoker.php
<?php | <?php | ||||
final class PhabricatorAuthSSHRevoker | final class PhabricatorAuthSSHRevoker | ||||
extends PhabricatorAuthRevoker { | extends PhabricatorAuthRevoker { | ||||
const REVOKERKEY = 'ssh'; | const REVOKERKEY = 'ssh'; | ||||
public function getRevokerName() { | |||||
return pht('SSH Keys'); | |||||
} | |||||
public function getRevokerDescription() { | |||||
return pht( | |||||
"Revokes all SSH public keys.\n\n". | |||||
"SSH public keys are revoked, not just removed. Users will need to ". | |||||
"generate and upload new, unique keys before they can access ". | |||||
"repositories or other services over SSH."); | |||||
} | |||||
public function revokeAllCredentials() { | public function revokeAllCredentials() { | ||||
$query = new PhabricatorAuthSSHKeyQuery(); | $query = new PhabricatorAuthSSHKeyQuery(); | ||||
return $this->revokeWithQuery($query); | return $this->revokeWithQuery($query); | ||||
} | } | ||||
public function revokeCredentialsFrom($object) { | public function revokeCredentialsFrom($object) { | ||||
$query = id(new PhabricatorAuthSSHKeyQuery()) | $query = id(new PhabricatorAuthSSHKeyQuery()) | ||||
->withObjectPHIDs(array($object->getPHID())); | ->withObjectPHIDs(array($object->getPHID())); | ||||
Show All 38 Lines |