|
5 | 5 | namespace SimpleSAML\Module\oidc\Server\Grants; |
6 | 6 |
|
7 | 7 | use DateInterval; |
8 | | -use League\OAuth2\Server\Entities\AccessTokenEntityInterface as OAuth2AccessTokenEntityInterface; |
9 | 8 | use League\OAuth2\Server\Entities\ClientEntityInterface as OAuth2ClientEntityInterface; |
10 | 9 | use League\OAuth2\Server\Entities\ScopeEntityInterface; |
11 | 10 | use League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface as OAuth2AuthCodeRepositoryInterface; |
|
17 | 16 | use Psr\Http\Message\ServerRequestInterface; |
18 | 17 | use SimpleSAML\Module\oidc\Codebooks\FlowTypeEnum; |
19 | 18 | use SimpleSAML\Module\oidc\Entities\AuthCodeEntity; |
20 | | -use SimpleSAML\Module\oidc\Entities\Interfaces\AccessTokenEntityInterface; |
21 | 19 | use SimpleSAML\Module\oidc\Entities\Interfaces\AuthCodeEntityInterface; |
22 | 20 | use SimpleSAML\Module\oidc\Entities\Interfaces\ClientEntityInterface; |
23 | | -use SimpleSAML\Module\oidc\Entities\Interfaces\RefreshTokenEntityInterface; |
24 | 21 | use SimpleSAML\Module\oidc\Entities\UserEntity; |
25 | 22 | use SimpleSAML\Module\oidc\Factories\Entities\AccessTokenEntityFactory; |
26 | 23 | use SimpleSAML\Module\oidc\Factories\Entities\AuthCodeEntityFactory; |
@@ -560,28 +557,4 @@ public function validateAuthorizationRequestWithRequestRules( |
560 | 557 | ): OAuth2AuthorizationRequestInterface { |
561 | 558 | throw OidcServerException::serverError('Not implemented'); |
562 | 559 | } |
563 | | - |
564 | | - |
565 | | - /** |
566 | | - * @param \League\OAuth2\Server\Entities\AccessTokenEntityInterface $accessToken |
567 | | - * @param string|null $authCodeId |
568 | | - * @return \SimpleSAML\Module\oidc\Entities\Interfaces\RefreshTokenEntityInterface|null |
569 | | - * @throws \League\OAuth2\Server\Exception\OAuthServerException |
570 | | - * @throws \League\OAuth2\Server\Exception\UniqueTokenIdentifierConstraintViolationException |
571 | | - */ |
572 | | - protected function issueRefreshToken( |
573 | | - OAuth2AccessTokenEntityInterface $accessToken, |
574 | | - ?string $authCodeId = null, |
575 | | - ): ?RefreshTokenEntityInterface { |
576 | | - if (! is_a($accessToken, AccessTokenEntityInterface::class)) { |
577 | | - throw OidcServerException::serverError('Unexpected access token entity type.'); |
578 | | - } |
579 | | - |
580 | | - return $this->refreshTokenIssuer->issue( |
581 | | - $accessToken, |
582 | | - $this->refreshTokenTTL, |
583 | | - $authCodeId, |
584 | | - self::MAX_RANDOM_TOKEN_GENERATION_ATTEMPTS, |
585 | | - ); |
586 | | - } |
587 | 560 | } |
0 commit comments