public function shouldAllowRestrictedParameter($parameter_name)
 {
     if ($parameter_name == 'code') {
         return true;
     }
     return parent::shouldAllowRestrictedParameter($parameter_name);
 }
 public function shouldAllowRestrictedParameter($parameter_name)
 {
     // Whitelist the OAuth 'code' parameter.
     if ($parameter_name == 'code') {
         return true;
     }
     return parent::shouldAllowRestrictedParameter($parameter_name);
 }
 protected function buildApplicationCrumbs()
 {
     $crumbs = parent::buildApplicationCrumbs();
     $viewer = $this->getViewer();
     $key_object = $this->getSSHKeyObject();
     if ($key_object) {
         $object_phid = $key_object->getPHID();
         $handles = $viewer->loadHandles(array($object_phid));
         $handle = $handles[$object_phid];
         $uri = $key_object->getSSHPublicKeyManagementURI($viewer);
         $crumbs->addTextCrumb($handle->getObjectName(), $uri);
     }
     return $crumbs;
 }
 protected function buildApplicationCrumbs()
 {
     $crumbs = parent::buildApplicationCrumbs();
     $crumbs->addAction(id(new PHUIListItemView())->setName(pht('Add Authentication Provider'))->setHref($this->getApplicationURI('/config/new/'))->setIcon('fa-plus-square'));
     return $crumbs;
 }
 protected function buildApplicationCrumbs()
 {
     $crumbs = parent::buildApplicationCrumbs();
     $can_create = $this->hasApplicationCapability(AuthManageProvidersCapability::CAPABILITY);
     return $crumbs;
 }