forked from thephpleague/oauth2-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathClientEntityInterface.php
48 lines (40 loc) · 1.06 KB
/
ClientEntityInterface.php
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
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* @author Alex Bilbie <[email protected]>
* @copyright Copyright (c) Alex Bilbie
* @license http://mit-license.org/
*
* @link https://github.com/thephpleague/oauth2-server
*/
declare(strict_types=1);
namespace League\OAuth2\Server\Entities;
interface ClientEntityInterface
{
/**
* Get the client's identifier.
*
* @return non-empty-string
*/
public function getIdentifier(): string;
/**
* Get the client's name.
*/
public function getName(): string;
/**
* Returns the registered redirect URI (as a string). Alternatively return
* an indexed array of redirect URIs.
*
* @return string|string[]
*/
public function getRedirectUri(): string|array;
/**
* Returns true if the client is confidential.
*/
public function isConfidential(): bool;
/*
* Returns true if the client supports the given grant type.
*
* To be added in a future major release.
*/
// public function supportsGrantType(string $grantType): bool;
}