1 | <?php |
||
22 | class SessionStateParameterExtension extends \OAuth2Framework\Component\OpenIdConnect\ConsentScreen\SessionStateParameterExtension |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $storageName; |
||
28 | |||
29 | /** |
||
30 | * @var SessionInterface |
||
31 | */ |
||
32 | private $session; |
||
33 | |||
34 | /** |
||
35 | * SessionStateParameterExtension constructor. |
||
36 | * |
||
37 | * @param SessionInterface $session |
||
38 | * @param string $storageName |
||
39 | */ |
||
40 | public function __construct(SessionInterface $session, string $storageName) |
||
45 | |||
46 | public function processBefore(ServerRequestInterface $request, Authorization $authorization): Authorization |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | protected function getBrowserState(ServerRequestInterface $request, Authorization &$authorization): string |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | protected function calculateSessionState(ServerRequestInterface $request, Authorization $authorization, string $browserState): string |
||
79 | |||
80 | /** |
||
81 | * @param string $redirectUri |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | private function getOriginUri(string $redirectUri): string |
||
91 | } |
||
92 |