1 | <?php |
||
20 | abstract class SessionStateParameterExtension implements AfterConsentScreen |
||
21 | { |
||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function process(ServerRequestInterface $request, Authorization $authorization): Authorization |
||
35 | |||
36 | /** |
||
37 | * @param Authorization $authorization |
||
38 | * @return bool |
||
39 | */ |
||
40 | private function hasOpenIdScope(Authorization $authorization): bool |
||
51 | |||
52 | /** |
||
53 | * @param ServerRequestInterface $request |
||
54 | * @param Authorization $authorization |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | abstract protected function getBrowserState(ServerRequestInterface $request, Authorization &$authorization): string; |
||
59 | |||
60 | /** |
||
61 | * @param ServerRequestInterface $request |
||
62 | * @param Authorization $authorization |
||
63 | * @param string $browserState |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | abstract protected function calculateSessionState(ServerRequestInterface $request, Authorization $authorization, string $browserState): string; |
||
68 | } |
||
69 |