@@ -17,6 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | /** |
| 19 | 19 | * @param InitialAccessToken $initialAccessToken |
| 20 | + * @return void |
|
| 20 | 21 | */ |
| 21 | 22 | public function save(InitialAccessToken $initialAccessToken); |
| 22 | 23 | |
@@ -19,6 +19,7 @@ |
||
| 19 | 19 | * Save the client. |
| 20 | 20 | * |
| 21 | 21 | * @param Client $client |
| 22 | + * @return void |
|
| 22 | 23 | */ |
| 23 | 24 | public function save(Client $client); |
| 24 | 25 | |
@@ -21,6 +21,7 @@ |
||
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * @param RefreshToken $refreshToken |
| 24 | + * @return void |
|
| 24 | 25 | */ |
| 25 | 26 | public function save(RefreshToken $refreshToken); |
| 26 | 27 | |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | namespace OAuth2Framework\Component\AuthorizationCodeGrant; |
| 15 | 15 | |
| 16 | 16 | use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\PKCEMethodManager; |
| 17 | -use OAuth2Framework\Component\TokenEndpoint\GrantTypeData; |
|
| 18 | 17 | use OAuth2Framework\Component\Core\Client\Client; |
| 19 | 18 | use OAuth2Framework\Component\Core\Exception\OAuth2Exception; |
| 20 | 19 | use OAuth2Framework\Component\TokenEndpoint\GrantType; |
| 20 | +use OAuth2Framework\Component\TokenEndpoint\GrantTypeData; |
|
| 21 | 21 | use Psr\Http\Message\ServerRequestInterface; |
| 22 | 22 | |
| 23 | 23 | class AuthorizationCodeGrantType implements GrantType |
@@ -13,13 +13,13 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace OAuth2Framework\Component\ClientAuthentication; |
| 15 | 15 | |
| 16 | -use Psr\Http\Server\RequestHandlerInterface; |
|
| 17 | -use Psr\Http\Server\MiddlewareInterface; |
|
| 18 | 16 | use OAuth2Framework\Component\Core\Client\Client; |
| 19 | 17 | use OAuth2Framework\Component\Core\Client\ClientRepository; |
| 20 | 18 | use OAuth2Framework\Component\Core\Exception\OAuth2Exception; |
| 21 | 19 | use Psr\Http\Message\ResponseInterface; |
| 22 | 20 | use Psr\Http\Message\ServerRequestInterface; |
| 21 | +use Psr\Http\Server\MiddlewareInterface; |
|
| 22 | +use Psr\Http\Server\RequestHandlerInterface; |
|
| 23 | 23 | |
| 24 | 24 | class ClientAuthenticationMiddleware implements MiddlewareInterface |
| 25 | 25 | { |
@@ -13,12 +13,12 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace OAuth2Framework\Component\ClientAuthentication\Tests; |
| 15 | 15 | |
| 16 | +use OAuth2Framework\Component\ClientAuthentication\AuthenticationMethodManager; |
|
| 17 | +use OAuth2Framework\Component\ClientAuthentication\ClientSecretBasic; |
|
| 16 | 18 | use OAuth2Framework\Component\Core\Client\Client; |
| 17 | 19 | use OAuth2Framework\Component\Core\Client\ClientId; |
| 18 | 20 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
| 19 | 21 | use OAuth2Framework\Component\Core\UserAccount\UserAccountId; |
| 20 | -use OAuth2Framework\Component\ClientAuthentication\AuthenticationMethodManager; |
|
| 21 | -use OAuth2Framework\Component\ClientAuthentication\ClientSecretBasic; |
|
| 22 | 22 | use PHPUnit\Framework\TestCase; |
| 23 | 23 | use Psr\Http\Message\ServerRequestInterface; |
| 24 | 24 | |
@@ -13,14 +13,14 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace OAuth2Framework\Component\Middleware; |
| 15 | 15 | |
| 16 | -use Psr\Http\Server\RequestHandlerInterface; |
|
| 17 | -use Psr\Http\Server\MiddlewareInterface; |
|
| 18 | 16 | use OAuth2Framework\Component\Core\AccessToken\AccessTokenId; |
| 19 | 17 | use OAuth2Framework\Component\Core\AccessToken\AccessTokenRepository; |
| 20 | 18 | use OAuth2Framework\Component\Core\Exception\OAuth2Exception; |
| 21 | 19 | use OAuth2Framework\Component\TokenType\TokenTypeManager; |
| 22 | 20 | use Psr\Http\Message\ResponseInterface; |
| 23 | 21 | use Psr\Http\Message\ServerRequestInterface; |
| 22 | +use Psr\Http\Server\MiddlewareInterface; |
|
| 23 | +use Psr\Http\Server\RequestHandlerInterface; |
|
| 24 | 24 | |
| 25 | 25 | class AccessTokenMiddleware implements MiddlewareInterface |
| 26 | 26 | { |
@@ -13,8 +13,6 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | namespace OAuth2Framework\Component\Middleware; |
| 15 | 15 | |
| 16 | -use Psr\Http\Server\RequestHandlerInterface; |
|
| 17 | -use Psr\Http\Server\MiddlewareInterface; |
|
| 18 | 16 | use OAuth2Framework\Component\Core\AccessToken\AccessToken; |
| 19 | 17 | use OAuth2Framework\Component\Core\AccessToken\AccessTokenHandlerManager; |
| 20 | 18 | use OAuth2Framework\Component\Core\AccessToken\AccessTokenId; |
@@ -23,6 +21,8 @@ discard block |
||
| 23 | 21 | use OAuth2Framework\Component\TokenType\TokenTypeManager; |
| 24 | 22 | use Psr\Http\Message\ResponseInterface; |
| 25 | 23 | use Psr\Http\Message\ServerRequestInterface; |
| 24 | +use Psr\Http\Server\MiddlewareInterface; |
|
| 25 | +use Psr\Http\Server\RequestHandlerInterface; |
|
| 26 | 26 | |
| 27 | 27 | class OAuth2SecurityMiddleware implements MiddlewareInterface |
| 28 | 28 | { |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace OAuth2Framework\Component\OpenIdConnect\UserInfo; |
| 15 | 15 | |
| 16 | +use OAuth2Framework\Component\Core\Client\Client; |
|
| 17 | +use OAuth2Framework\Component\Core\UserAccount\UserAccount; |
|
| 16 | 18 | use OAuth2Framework\Component\OpenIdConnect\UserInfo\ClaimSource\ClaimSourceManager; |
| 17 | 19 | use OAuth2Framework\Component\OpenIdConnect\UserInfo\Pairwise\PairwiseSubjectIdentifierAlgorithm; |
| 18 | 20 | use OAuth2Framework\Component\OpenIdConnect\UserInfo\ScopeSupport\UserInfoScopeSupportManager; |
| 19 | -use OAuth2Framework\Component\Core\Client\Client; |
|
| 20 | -use OAuth2Framework\Component\Core\UserAccount\UserAccount; |
|
| 21 | 21 | |
| 22 | 22 | class UserInfo |
| 23 | 23 | { |