1 | <?php |
||
13 | class AuthorizationServerConfiguration |
||
14 | { |
||
15 | private $tokenGenerator; |
||
16 | private $options = [ |
||
17 | 'always_require_a_client' => false, |
||
18 | 'access_token_ttl' => 3600, |
||
19 | 'refresh_token_ttl' => 3600, |
||
20 | 'access_token_length' => 32, |
||
21 | 'revoke_refresh_token_when_used' => true, |
||
22 | ]; |
||
23 | |||
24 | public function __construct(TokenGenerator $tokenGenerator, array $options = []) |
||
29 | |||
30 | public function alwaysRequireAClient() |
||
34 | |||
35 | public function alwaysGenerateARefreshToken() |
||
39 | |||
40 | public function shouldRevokeRefreshTokenWhenUsed() |
||
44 | |||
45 | public function getAccessTokenTTL() |
||
49 | |||
50 | public function getRefreshTokenTTL() |
||
54 | |||
55 | public function getTokenGenerator() |
||
59 | |||
60 | public function getAccessTokenLength() |
||
64 | } |
||
65 |