@@ -11,7 +11,7 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * @param string $name |
| 13 | 13 | * |
| 14 | - * @return mixed|null |
|
| 14 | + * @return string |
|
| 15 | 15 | */ |
| 16 | 16 | public function get(string $name); |
| 17 | 17 | |
@@ -160,6 +160,11 @@ |
||
| 160 | 160 | return $this->fetchToken($client, $tokenSet, $redirectUri, $authSession, $maxAge); |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | + /** |
|
| 164 | + * @param string $redirectUri |
|
| 165 | + * @param AuthSessionInterface $authSession |
|
| 166 | + * @param integer $maxAge |
|
| 167 | + */ |
|
| 163 | 168 | public function fetchToken( |
| 164 | 169 | OpenIDClient $client, |
| 165 | 170 | TokenSetInterface $tokenSet, |
@@ -6,20 +6,44 @@ |
||
| 6 | 6 | |
| 7 | 7 | interface TokenSetInterface |
| 8 | 8 | { |
| 9 | + /** |
|
| 10 | + * @return string|null |
|
| 11 | + */ |
|
| 9 | 12 | public function getTokenType(): ?string; |
| 10 | 13 | |
| 14 | + /** |
|
| 15 | + * @return string|null |
|
| 16 | + */ |
|
| 11 | 17 | public function getAccessToken(): ?string; |
| 12 | 18 | |
| 19 | + /** |
|
| 20 | + * @return string|null |
|
| 21 | + */ |
|
| 13 | 22 | public function getIdToken(): ?string; |
| 14 | 23 | |
| 24 | + /** |
|
| 25 | + * @return string|null |
|
| 26 | + */ |
|
| 15 | 27 | public function getRefreshToken(): ?string; |
| 16 | 28 | |
| 29 | + /** |
|
| 30 | + * @return integer|null |
|
| 31 | + */ |
|
| 17 | 32 | public function getExpiresIn(): ?int; |
| 18 | 33 | |
| 34 | + /** |
|
| 35 | + * @return string|null |
|
| 36 | + */ |
|
| 19 | 37 | public function getCodeVerifier(): ?string; |
| 20 | 38 | |
| 39 | + /** |
|
| 40 | + * @return null|string |
|
| 41 | + */ |
|
| 21 | 42 | public function getCode(): ?string; |
| 22 | 43 | |
| 44 | + /** |
|
| 45 | + * @return null|string |
|
| 46 | + */ |
|
| 23 | 47 | public function getState(): ?string; |
| 24 | 48 | |
| 25 | 49 | /** |
@@ -8,10 +8,19 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | interface AuthSessionInterface extends JsonSerializable |
| 10 | 10 | { |
| 11 | + /** |
|
| 12 | + * @return null|string |
|
| 13 | + */ |
|
| 11 | 14 | public function getState(): ?string; |
| 12 | 15 | |
| 16 | + /** |
|
| 17 | + * @return null|string |
|
| 18 | + */ |
|
| 13 | 19 | public function getNonce(): ?string; |
| 14 | 20 | |
| 21 | + /** |
|
| 22 | + * @return null|string |
|
| 23 | + */ |
|
| 15 | 24 | public function getCodeVerifier(): ?string; |
| 16 | 25 | |
| 17 | 26 | /** |
@@ -19,14 +28,28 @@ discard block |
||
| 19 | 28 | */ |
| 20 | 29 | public function getCustoms(): array; |
| 21 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $state |
|
| 33 | + * |
|
| 34 | + * @return void |
|
| 35 | + */ |
|
| 22 | 36 | public function setState(?string $state): void; |
| 23 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $nonce |
|
| 40 | + * |
|
| 41 | + * @return void |
|
| 42 | + */ |
|
| 24 | 43 | public function setNonce(?string $nonce): void; |
| 25 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 26 | 48 | public function setCodeVerifier(?string $codeVerifier): void; |
| 27 | 49 | |
| 28 | 50 | /** |
| 29 | 51 | * @param array<string, mixed> $customs |
| 52 | + * @return void |
|
| 30 | 53 | */ |
| 31 | 54 | public function setCustoms(array $customs): void; |
| 32 | 55 | |