mirror of
https://github.com/nextcloud/server.git
synced 2026-10-05 18:38:03 +02:00
This is for the kerberos usecase Signed-off-by: Carl Schwan <carl@carlschwan.eu>
46 lines
1.1 KiB
PHP
46 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
// use OCP namespace for all classes that are considered public.
|
|
// This means that they should be used by apps instead of the internal Nextcloud classes
|
|
|
|
namespace OCP\Authentication;
|
|
|
|
/**
|
|
* Interface IApacheBackend
|
|
*
|
|
* @since 6.0.0
|
|
*/
|
|
interface IApacheBackend {
|
|
/**
|
|
* In case the user has been authenticated by a module true is returned.
|
|
*
|
|
* @return bool whether the module reports a user as currently logged in.
|
|
* @since 6.0.0
|
|
*/
|
|
public function isSessionActive(): bool;
|
|
|
|
/**
|
|
* Gets the current logout URL
|
|
*
|
|
* Can return an empty string when the backend has no logout URL to
|
|
* offer (e.g. Kerberos/SPNEGO where logging out client-side has no
|
|
* effect since the browser will just re-authenticate transparently).
|
|
*
|
|
* @return string
|
|
* @since 12.0.3
|
|
*/
|
|
public function getLogoutUrl(): string;
|
|
|
|
/**
|
|
* Return the id of the current user
|
|
* @return string
|
|
* @since 6.0.0
|
|
*/
|
|
public function getCurrentUserId(): string;
|
|
}
|