2024-07-15 20:46:44 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* SPDX-FileCopyrightText: 2024 Sascha Nitsch (grumpydeveloper) https://contentnation.net/@grumpydevelop
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*
|
|
|
|
* @author Sascha Nitsch (grumpydeveloper)
|
|
|
|
**/
|
|
|
|
|
|
|
|
namespace Federator\Connector;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* base class for remote authentication
|
|
|
|
*/
|
|
|
|
interface Connector
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* get remote user by given session
|
2024-07-17 21:37:02 +02:00
|
|
|
*
|
2024-07-15 20:46:44 +02:00
|
|
|
* @param string $_session session id
|
|
|
|
* @param string $_user user/profile name
|
2024-07-17 15:45:19 +02:00
|
|
|
* @return \Federator\Data\User | false
|
2024-07-15 20:46:44 +02:00
|
|
|
*/
|
|
|
|
public function getRemoteUserBySession(string $_session, string $_user);
|
|
|
|
}
|