-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRemoteCallInterface.php
More file actions
37 lines (35 loc) · 970 Bytes
/
RemoteCallInterface.php
File metadata and controls
37 lines (35 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Remote call interface, based on this doc:
* https://developers.staffbase.com/api/plugin-sso/
*
* @category Authentication
* @copyright 2017-2025 Staffbase SE.
* @author Vitaliy Ivanov
* @license http://www.apache.org/licenses/LICENSE-2.0
* @link https://github.com/staffbase/plugins-sdk-php
*/
namespace Staffbase\plugins\sdk\RemoteCall;
/**
* Interface RemoteCallInterface
*
* A generic interface describing the protocol with the
* Staffbase Backend after a Remote SSO call was issued.
*
* @package Staffbase\plugins\sdk\RemoteCall
*/
interface RemoteCallInterface
{
/**
* Stop the execution by providing a 2XX HTTP response
*
* This will tell Staffbase that everything went OK.
*/
public function exitSuccess();
/**
* Stop the execution by providing a non 2XX HTTP response
*
* This will tell Staffbase that it should try again later.
*/
public function exitFailure();
}