2021-10-12 10:30:00 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-27 11:39:07 -04:00
|
|
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-10-12 10:30:00 -04:00
|
|
|
*/
|
2026-05-28 08:54:31 -04:00
|
|
|
|
2021-10-12 10:30:00 -04:00
|
|
|
namespace OCA\DAV\CalDAV\Auth;
|
|
|
|
|
|
|
|
|
|
use Sabre\DAV\Auth\Plugin;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Defines the public facing principal option
|
|
|
|
|
*/
|
|
|
|
|
class PublicPrincipalPlugin extends Plugin {
|
2026-04-28 13:35:30 -04:00
|
|
|
#[\Override]
|
2021-10-12 10:30:00 -04:00
|
|
|
public function getCurrentPrincipal(): ?string {
|
|
|
|
|
return 'principals/system/public';
|
|
|
|
|
}
|
|
|
|
|
}
|