Rackspace.php 780 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCA\Files_External\Lib\Auth\OpenStack;
  8. use OCA\Files_External\Lib\Auth\AuthMechanism;
  9. use OCA\Files_External\Lib\DefinitionParameter;
  10. use OCP\IL10N;
  11. /**
  12. * Rackspace authentication
  13. */
  14. class Rackspace extends AuthMechanism {
  15. public function __construct(IL10N $l) {
  16. $this
  17. ->setIdentifier('openstack::rackspace')
  18. ->setScheme(self::SCHEME_OPENSTACK)
  19. ->setText($l->t('Rackspace'))
  20. ->addParameters([
  21. new DefinitionParameter('user', $l->t('Login')),
  22. (new DefinitionParameter('key', $l->t('API key')))
  23. ->setType(DefinitionParameter::VALUE_PASSWORD),
  24. ])
  25. ;
  26. }
  27. }