@@ -22,11 +22,13 @@ discard block |
||
| 22 | 22 | * @param string $path |
| 23 | 23 | * @param ContainerBuilder $container |
| 24 | 24 | * @param array $config |
| 25 | + * @return void |
|
| 25 | 26 | */ |
| 26 | 27 | public function load(string $path, ContainerBuilder $container, array $config); |
| 27 | 28 | |
| 28 | 29 | /** |
| 29 | 30 | * @param NodeDefinition $node |
| 31 | + * @return void |
|
| 30 | 32 | */ |
| 31 | 33 | public function addConfiguration(NodeDefinition $node); |
| 32 | 34 | |
@@ -34,6 +36,7 @@ discard block |
||
| 34 | 36 | * @param array $bundleConfig |
| 35 | 37 | * @param string $path |
| 36 | 38 | * @param ContainerBuilder $container |
| 39 | + * @return void |
|
| 37 | 40 | */ |
| 38 | 41 | public function prepend(array $bundleConfig, string $path, ContainerBuilder $container); |
| 39 | 42 | } |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | use OAuth2Framework\Bundle\Server\SecurityPlugin\Security\Authentication\Token\OAuth2Token; |
| 17 | 17 | use OAuth2Framework\Component\Server\Model\AccessToken\AccessToken; |
| 18 | 18 | use Symfony\Component\HttpFoundation\Request; |
| 19 | -use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface; |
|
| 20 | 19 | use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata; |
| 20 | +use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface; |
|
| 21 | 21 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |
| 22 | 22 | |
| 23 | 23 | final class AccessTokenResolver implements ArgumentValueResolverInterface |
@@ -15,8 +15,8 @@ |
||
| 15 | 15 | |
| 16 | 16 | use Fluent\PhpConfigFileLoader; |
| 17 | 17 | use OAuth2Framework\Bundle\Server\DependencyInjection\Source\ActionableSource; |
| 18 | -use Symfony\Component\Config\FileLocator; |
|
| 19 | 18 | use Symfony\Component\Config\Definition\Builder\NodeDefinition; |
| 19 | +use Symfony\Component\Config\FileLocator; |
|
| 20 | 20 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 21 | 21 | |
| 22 | 22 | final class ScopePolicyDefaultSource extends ActionableSource |
@@ -15,8 +15,8 @@ |
||
| 15 | 15 | |
| 16 | 16 | use Fluent\PhpConfigFileLoader; |
| 17 | 17 | use OAuth2Framework\Bundle\Server\DependencyInjection\Source\ActionableSource; |
| 18 | -use Symfony\Component\Config\FileLocator; |
|
| 19 | 18 | use Symfony\Component\Config\Definition\Builder\NodeDefinition; |
| 19 | +use Symfony\Component\Config\FileLocator; |
|
| 20 | 20 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 21 | 21 | |
| 22 | 22 | final class ScopePolicySource extends ActionableSource |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | use Fluent\PhpConfigFileLoader; |
| 17 | 17 | use OAuth2Framework\Bundle\Server\DependencyInjection\Source\ActionableSource; |
| 18 | 18 | use OAuth2Framework\Component\Server\Model\Scope\ScopeRepositoryInterface; |
| 19 | -use Symfony\Component\Config\FileLocator; |
|
| 20 | 19 | use Symfony\Component\Config\Definition\Builder\NodeDefinition; |
| 20 | +use Symfony\Component\Config\FileLocator; |
|
| 21 | 21 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 22 | 22 | |
| 23 | 23 | final class ScopeSource extends ActionableSource |
@@ -16,11 +16,11 @@ |
||
| 16 | 16 | use OAuth2Framework\Bundle\Server\Security\Authentication\Provider\OAuth2Provider; |
| 17 | 17 | use OAuth2Framework\Bundle\Server\Security\EntryPoint\OAuth2EntryPoint; |
| 18 | 18 | use OAuth2Framework\Bundle\Server\Security\Firewall\OAuth2Listener; |
| 19 | +use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\SecurityFactoryInterface; |
|
| 20 | +use Symfony\Component\Config\Definition\Builder\NodeDefinition; |
|
| 19 | 21 | use Symfony\Component\DependencyInjection\ChildDefinition; |
| 20 | 22 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 21 | 23 | use Symfony\Component\DependencyInjection\Reference; |
| 22 | -use Symfony\Component\Config\Definition\Builder\NodeDefinition; |
|
| 23 | -use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\SecurityFactoryInterface; |
|
| 24 | 24 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |
| 25 | 25 | |
| 26 | 26 | final class OAuth2SecurityFactory implements SecurityFactoryInterface |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace OAuth2Framework\Bundle\Server\DependencyInjection\Source\Grant; |
| 15 | 15 | |
| 16 | -use Jose\Bundle\JoseFramework\Helper\ConfigurationHelper; |
|
| 17 | 16 | use OAuth2Framework\Bundle\Server\DependencyInjection\Source\ActionableSource; |
| 18 | 17 | use Symfony\Component\Config\Definition\Builder\NodeDefinition; |
| 19 | 18 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | namespace OAuth2Framework\Component\Server\AuthorizationCodeGrant; |
| 15 | 15 | |
| 16 | 16 | use OAuth2Framework\Component\Server\AuthorizationCodeGrant\PKCEMethod\PKCEMethodManager; |
| 17 | -use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
|
| 18 | 17 | use OAuth2Framework\Component\Server\Core\Client\Client; |
| 19 | 18 | use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
| 20 | 19 | use OAuth2Framework\Component\Server\TokenEndpoint\GrantType; |
| 20 | +use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
|
| 21 | 21 | use Psr\Http\Message\ServerRequestInterface; |
| 22 | 22 | |
| 23 | 23 | final class AuthorizationCodeGrantType implements GrantType |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | /** |
| 170 | - * @return array |
|
| 170 | + * @return string[] |
|
| 171 | 171 | */ |
| 172 | 172 | public function getScopes(): array |
| 173 | 173 | { |