|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * @author Patrick Rodacker <[email protected]> |
| 4 | + * @copyright Copyright (c) Alex Bilbie |
| 5 | + * @license http://mit-license.org/ |
| 6 | + * |
| 7 | + * @link https://github.com/thephpleague/oauth2-server |
| 8 | + */ |
| 9 | + |
| 10 | +namespace League\OAuth2\Server\RequestTypes; |
| 11 | + |
| 12 | +use League\OAuth2\Server\Entities\ClientEntityInterface; |
| 13 | +use League\OAuth2\Server\Entities\ScopeEntityInterface; |
| 14 | +use League\OAuth2\Server\Entities\UserEntityInterface; |
| 15 | + |
| 16 | +interface AuthorizationRequestInterface |
| 17 | +{ |
| 18 | + /** |
| 19 | + * @return UserEntityInterface|null |
| 20 | + */ |
| 21 | + public function getUser(); |
| 22 | + |
| 23 | + /** |
| 24 | + * @param string $state |
| 25 | + */ |
| 26 | + public function setState($state); |
| 27 | + |
| 28 | + /** |
| 29 | + * @return ClientEntityInterface |
| 30 | + */ |
| 31 | + public function getClient(); |
| 32 | + |
| 33 | + /** |
| 34 | + * @param bool $authorizationApproved |
| 35 | + */ |
| 36 | + public function setAuthorizationApproved($authorizationApproved); |
| 37 | + |
| 38 | + /** |
| 39 | + * @param ScopeEntityInterface[] $scopes |
| 40 | + */ |
| 41 | + public function setScopes(array $scopes); |
| 42 | + |
| 43 | + /** |
| 44 | + * @param string|null $redirectUri |
| 45 | + */ |
| 46 | + public function setRedirectUri($redirectUri); |
| 47 | + |
| 48 | + /** |
| 49 | + * @return string|null |
| 50 | + */ |
| 51 | + public function getRedirectUri(); |
| 52 | + |
| 53 | + /** |
| 54 | + * @return string |
| 55 | + */ |
| 56 | + public function getCodeChallengeMethod(); |
| 57 | + |
| 58 | + /** |
| 59 | + * @param string $grantTypeId |
| 60 | + */ |
| 61 | + public function setGrantTypeId($grantTypeId); |
| 62 | + |
| 63 | + /** |
| 64 | + * @param UserEntityInterface $user |
| 65 | + */ |
| 66 | + public function setUser(UserEntityInterface $user); |
| 67 | + |
| 68 | + /** |
| 69 | + * @param ClientEntityInterface $client |
| 70 | + */ |
| 71 | + public function setClient(ClientEntityInterface $client); |
| 72 | + |
| 73 | + /** |
| 74 | + * @param string $codeChallenge |
| 75 | + */ |
| 76 | + public function setCodeChallenge($codeChallenge); |
| 77 | + |
| 78 | + /** |
| 79 | + * @return bool |
| 80 | + */ |
| 81 | + public function isAuthorizationApproved(); |
| 82 | + |
| 83 | + /** |
| 84 | + * @return string|null |
| 85 | + */ |
| 86 | + public function getState(); |
| 87 | + |
| 88 | + /** |
| 89 | + * @return string |
| 90 | + */ |
| 91 | + public function getCodeChallenge(); |
| 92 | + |
| 93 | + /** |
| 94 | + * @param string $codeChallengeMethod |
| 95 | + */ |
| 96 | + public function setCodeChallengeMethod($codeChallengeMethod); |
| 97 | + |
| 98 | + /** |
| 99 | + * @return ScopeEntityInterface[] |
| 100 | + */ |
| 101 | + public function getScopes(); |
| 102 | + |
| 103 | + /** |
| 104 | + * @return string |
| 105 | + */ |
| 106 | + public function getGrantTypeId(); |
| 107 | +} |
0 commit comments