thephpleague /
oauth2-server
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * @author Alex Bilbie <[email protected]> |
||
| 5 | * @copyright Copyright (c) Alex Bilbie |
||
| 6 | * @license http://mit-license.org/ |
||
| 7 | * |
||
| 8 | * @link https://github.com/thephpleague/oauth2-server |
||
| 9 | */ |
||
| 10 | |||
| 11 | declare(strict_types=1); |
||
| 12 | |||
| 13 | namespace League\OAuth2\Server\Entities; |
||
| 14 | |||
| 15 | interface ClientEntityInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Get the client's identifier. |
||
| 19 | * |
||
| 20 | * @return non-empty-string |
||
|
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
| 21 | */ |
||
| 22 | public function getIdentifier(): string; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get the client's name. |
||
| 26 | */ |
||
| 27 | public function getName(): string; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Returns the registered redirect URI (as a string). Alternatively return |
||
| 31 | * an indexed array of redirect URIs. |
||
| 32 | * |
||
| 33 | * @return string|string[] |
||
| 34 | */ |
||
| 35 | public function getRedirectUri(): string|array; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Returns true if the client is confidential. |
||
| 39 | */ |
||
| 40 | public function isConfidential(): bool; |
||
| 41 | |||
| 42 | /* |
||
| 43 | * Returns true if the client supports the given grant type. |
||
| 44 | * |
||
| 45 | * TODO: To be added in a future major release. |
||
| 46 | */ |
||
| 47 | // public function supportsGrantType(string $grantType): bool; |
||
| 48 | } |
||
| 49 |