1 | <?php |
||
8 | class AuthorizationServer extends BaseAuthorizationServer |
||
9 | { |
||
10 | /** |
||
11 | * @var Grant\Password |
||
12 | */ |
||
13 | private $passwordGrant; |
||
14 | |||
15 | /** |
||
16 | * @var Grant\RefreshToken |
||
17 | */ |
||
18 | private $refreshTokenGrant; |
||
19 | |||
20 | /** |
||
21 | * @param Storage\SessionInterface $sessionStorage |
||
22 | * @param Storage\AccessTokenInterface $accessTokenStorage |
||
23 | * @param Storage\ClientInterface $clientStorage |
||
24 | * @param Storage\ScopeInterface $scopeStorage |
||
25 | * @param Storage\RefreshTokenInterface $refreshTokenStorage |
||
26 | * @param Grant\Password $passwordGrant |
||
27 | * @param Grant\RefreshToken $refreshTokenGrant |
||
28 | */ |
||
29 | public function __construct( |
||
52 | |||
53 | /** |
||
54 | * Init authorization server. |
||
55 | */ |
||
56 | private function initServer() |
||
65 | |||
66 | /** |
||
67 | * Allows authorization server to deliver an access token with username/password. |
||
68 | */ |
||
69 | private function addPasswordGrant() |
||
73 | |||
74 | /** |
||
75 | * Allows authorization server to deliver a fresh access token with an old one. |
||
76 | */ |
||
77 | private function addRefreshTokenGrant() |
||
84 | } |
||
85 |