diff --git a/.gitignore b/.gitignore index 577221dddf73463120f3966c679d5a7e6d30a8f8..9909522be878e92a599d41091050ef65fe41bfcc 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ /.php_cs /.*.cache /_coverage -/.idea \ No newline at end of file +/.idea +cghooks.lock diff --git a/README.md b/README.md index c261483729e6efe81e4c198951a551cb4acfe7bf..8754fab5cc2780757d3fc953aa795bd75ae71398 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ -# DBP Relay Keycloak Bundle +# DBP Relay Auth Bundle -[GitLab](https://gitlab.tugraz.at/dbp/relay/dbp-relay-keycloak-bundle) | [Packagist](https://packagist.org/packages/dbp/relay-keycloak-bundle) +[GitLab](https://gitlab.tugraz.at/dbp/relay/dbp-relay-auth-bundle) | [Packagist](https://packagist.org/packages/dbp/relay-auth-bundle) ## Bundle Configuration -created via `./bin/console config:dump-reference DbpRelayKeycloakBundle | sed '/^$/d'` +created via `./bin/console config:dump-reference DbpRelayAuthBundle | sed '/^$/d'` ```yaml -# Default configuration for "DbpRelayKeycloakBundle" -dbp_relay_keycloak: +# Default configuration for "DbpRelayAuthBundle" +dbp_relay_auth: # The Keycloak server URL server_url: ~ # Example: 'https://keycloak.example.com/auth' # The Keycloak Realm diff --git a/composer.json b/composer.json index 021e0bb0d1e8018da66a1fc9acb91a494ece79d9..89bae8399f598af4bf6e0ac696a701b6faf9e529 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "dbp/relay-keycloak-bundle", + "name": "dbp/relay-auth-bundle", "type": "symfony-bundle", "license": "AGPL-3.0-or-later", "require": { @@ -26,12 +26,12 @@ }, "autoload": { "psr-4": { - "Dbp\\Relay\\KeycloakBundle\\": "src/" + "Dbp\\Relay\\AuthBundle\\": "src/" } }, "autoload-dev": { "psr-4": { - "Dbp\\Relay\\KeycloakBundle\\Tests\\": "tests/" + "Dbp\\Relay\\AuthBundle\\Tests\\": "tests/" } }, "config": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 199ab6fb91f11f12a5ec7dbc3f3074309a0e3cde..f5a49277f650a4345201397f0f11a9897e85ff69 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -13,7 +13,7 @@ <server name="SHELL_VERBOSITY" value="-1"/> <server name="SYMFONY_PHPUNIT_REMOVE" value=""/> <server name="SYMFONY_PHPUNIT_VERSION" value="9"/> - <server name="KERNEL_CLASS" value="Dbp\Relay\KeycloakBundle\Tests\Kernel"/> + <server name="KERNEL_CLASS" value="Dbp\Relay\AuthBundle\Tests\Kernel"/> </php> <testsuites> <testsuite name="Project Test Suite"> diff --git a/src/DbpRelayKeycloakBundle.php b/src/DbpRelayAuthBundle.php similarity index 72% rename from src/DbpRelayKeycloakBundle.php rename to src/DbpRelayAuthBundle.php index 47fbd7057269c391575814ed31d0b3ba0932d3a8..3440136d6388d4fc0b86814150e6e8f345e03c19 100644 --- a/src/DbpRelayKeycloakBundle.php +++ b/src/DbpRelayAuthBundle.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle; +namespace Dbp\Relay\AuthBundle; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; -class DbpRelayKeycloakBundle extends Bundle +class DbpRelayAuthBundle extends Bundle { public function build(ContainerBuilder $container) { diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index f489429bcc288fc8295797c32a2c7ebd519b1ecd..ba387bbb7e57d9000dc7dec5fb0b70bffc56f625 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\DependencyInjection; +namespace Dbp\Relay\AuthBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; @@ -11,7 +11,7 @@ class Configuration implements ConfigurationInterface { public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder('dbp_relay_keycloak'); + $treeBuilder = new TreeBuilder('dbp_relay_auth'); $treeBuilder->getRootNode() ->children() ->scalarNode('server_url') diff --git a/src/DependencyInjection/DbpRelayKeycloakExtension.php b/src/DependencyInjection/DbpRelayAuthExtension.php similarity index 87% rename from src/DependencyInjection/DbpRelayKeycloakExtension.php rename to src/DependencyInjection/DbpRelayAuthExtension.php index ec5e74670cde37651f53707c2d6b3f1bf6b43de9..a50116715c413d74c29dfe1708fdf60e1ae917bf 100644 --- a/src/DependencyInjection/DbpRelayKeycloakExtension.php +++ b/src/DependencyInjection/DbpRelayAuthExtension.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\DependencyInjection; +namespace Dbp\Relay\AuthBundle\DependencyInjection; use Symfony\Component\Cache\Adapter\FilesystemAdapter; use Symfony\Component\Config\FileLocator; @@ -11,7 +11,7 @@ use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; use Symfony\Component\HttpKernel\DependencyInjection\ConfigurableExtension; -class DbpRelayKeycloakExtension extends ConfigurableExtension implements PrependExtensionInterface +class DbpRelayAuthExtension extends ConfigurableExtension implements PrependExtensionInterface { public function loadInternal(array $mergedConfig, ContainerBuilder $container) { @@ -25,7 +25,7 @@ class DbpRelayKeycloakExtension extends ConfigurableExtension implements Prepend $certCacheDef->setArguments(['core-keycloak-cert', 60, '%kernel.cache_dir%/dbp/keycloak-keycloak-cert']); $certCacheDef->addTag('cache.pool'); - $definition = $container->getDefinition('Dbp\Relay\KeycloakBundle\Keycloak\KeycloakBearerUserProvider'); + $definition = $container->getDefinition('Dbp\Relay\AuthBundle\Keycloak\KeycloakBearerUserProvider'); $definition->addMethodCall('setConfig', [$mergedConfig]); $definition->addMethodCall('setCertCache', [$certCacheDef]); } diff --git a/src/Helpers/Tools.php b/src/Helpers/Tools.php index 6f6d6f32f454e0206114c1daaf0b5ec52ab6d88b..124782ef8cb3ab83c6687bfa4b67f8610a36ea47 100644 --- a/src/Helpers/Tools.php +++ b/src/Helpers/Tools.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Helpers; +namespace Dbp\Relay\AuthBundle\Helpers; use GuzzleHttp\MessageFormatter; use GuzzleHttp\Middleware; diff --git a/src/Keycloak/Keycloak.php b/src/Keycloak/Keycloak.php index 5c79b61eae311d3e7cbeef284d294695a515d1be..1d6762b3e39fffd727c5a0f16b872cca929ebe4c 100644 --- a/src/Keycloak/Keycloak.php +++ b/src/Keycloak/Keycloak.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Keycloak; +namespace Dbp\Relay\AuthBundle\Keycloak; class Keycloak { diff --git a/src/Keycloak/KeycloakBearerAuthenticator.php b/src/Keycloak/KeycloakBearerAuthenticator.php index f0657e572a05eeab335cd756eed09196fc3e9e46..141e6579ff794f039e62f703560e81a967ac8468 100644 --- a/src/Keycloak/KeycloakBearerAuthenticator.php +++ b/src/Keycloak/KeycloakBearerAuthenticator.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Keycloak; +namespace Dbp\Relay\AuthBundle\Keycloak; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareTrait; diff --git a/src/Keycloak/KeycloakBearerUser.php b/src/Keycloak/KeycloakBearerUser.php index bcfcb2d170161f15eec72dd311d2c96c1b57c5c5..846324ca5650c5308a226b33823f8316f1be3467 100644 --- a/src/Keycloak/KeycloakBearerUser.php +++ b/src/Keycloak/KeycloakBearerUser.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Keycloak; +namespace Dbp\Relay\AuthBundle\Keycloak; use Symfony\Component\Security\Core\User\UserInterface; diff --git a/src/Keycloak/KeycloakBearerUserProvider.php b/src/Keycloak/KeycloakBearerUserProvider.php index 2034fb2de562f1cd13eb357abfba2316dd5e94c6..c8b2fcdaaf37bb982fcd0bea78ee78b7a36a3c57 100644 --- a/src/Keycloak/KeycloakBearerUserProvider.php +++ b/src/Keycloak/KeycloakBearerUserProvider.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Keycloak; +namespace Dbp\Relay\AuthBundle\Keycloak; use Dbp\Relay\CoreBundle\API\UserSessionInterface; use Psr\Cache\CacheItemPoolInterface; diff --git a/src/Keycloak/KeycloakBearerUserProviderInterface.php b/src/Keycloak/KeycloakBearerUserProviderInterface.php index 022491493d03943bc9a70874d4348bfbf854055d..b0bbbd25c9fb9ead0b6fd20ff11bcab87c1d0c1e 100644 --- a/src/Keycloak/KeycloakBearerUserProviderInterface.php +++ b/src/Keycloak/KeycloakBearerUserProviderInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Keycloak; +namespace Dbp\Relay\AuthBundle\Keycloak; use Symfony\Component\Security\Core\User\UserInterface; diff --git a/src/Keycloak/KeycloakLocalTokenValidator.php b/src/Keycloak/KeycloakLocalTokenValidator.php index 9aada9984ab23d28234fde1a95e211cdc9dd8092..1d3e535d0f022ad493e171c640f989a552941c19 100644 --- a/src/Keycloak/KeycloakLocalTokenValidator.php +++ b/src/Keycloak/KeycloakLocalTokenValidator.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Keycloak; +namespace Dbp\Relay\AuthBundle\Keycloak; -use Dbp\Relay\KeycloakBundle\Helpers\Tools; +use Dbp\Relay\AuthBundle\Helpers\Tools; use GuzzleHttp\Client; use GuzzleHttp\HandlerStack; use Jose\Component\Core\JWKSet; diff --git a/src/Keycloak/KeycloakRemoteTokenValidator.php b/src/Keycloak/KeycloakRemoteTokenValidator.php index e104f6f1a6f5ff14d06a0d0955fd49181fffae44..c416673742b560a6e9a3d5db3dc58aba24414c93 100644 --- a/src/Keycloak/KeycloakRemoteTokenValidator.php +++ b/src/Keycloak/KeycloakRemoteTokenValidator.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Keycloak; +namespace Dbp\Relay\AuthBundle\Keycloak; -use Dbp\Relay\KeycloakBundle\Helpers\Tools; +use Dbp\Relay\AuthBundle\Helpers\Tools; use GuzzleHttp\Client; use GuzzleHttp\HandlerStack; diff --git a/src/Keycloak/KeycloakTokenValidatorBase.php b/src/Keycloak/KeycloakTokenValidatorBase.php index 9fc54c71158f59041589b6e2fa7fde4193444188..9b7153ef2f1db476e3802928598904ba1c33c966 100644 --- a/src/Keycloak/KeycloakTokenValidatorBase.php +++ b/src/Keycloak/KeycloakTokenValidatorBase.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Keycloak; +namespace Dbp\Relay\AuthBundle\Keycloak; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareTrait; diff --git a/src/Keycloak/TokenValidationException.php b/src/Keycloak/TokenValidationException.php index 7853c9cc8fbd15766f14c20656d8e971f38d8da7..4f2530f45223cd25713e1977969959fb29a23576 100644 --- a/src/Keycloak/TokenValidationException.php +++ b/src/Keycloak/TokenValidationException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Keycloak; +namespace Dbp\Relay\AuthBundle\Keycloak; class TokenValidationException extends \Exception { diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index d141b30294b115ccd04802beac773ca5e6904faf..0b40a6594c32bc34d2e41a9d8c1b154fc3e5bc0f 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -1,21 +1,21 @@ services: - Dbp\Relay\KeycloakBundle\Keycloak\KeycloakBearerAuthenticator: + Dbp\Relay\AuthBundle\Keycloak\KeycloakBearerAuthenticator: autowire: true autoconfigure: true - Dbp\Relay\KeycloakBundle\Keycloak\KeycloakBearerUserProvider: + Dbp\Relay\AuthBundle\Keycloak\KeycloakBearerUserProvider: autowire: true autoconfigure: true - Dbp\Relay\KeycloakBundle\Service\KeycloakUserSession: + Dbp\Relay\AuthBundle\Service\KeycloakUserSession: autowire: true autoconfigure: true - Dbp\Relay\KeycloakBundle\Keycloak\KeycloakBearerUserProviderInterface: - '@Dbp\Relay\KeycloakBundle\Keycloak\KeycloakBearerUserProvider' + Dbp\Relay\AuthBundle\Keycloak\KeycloakBearerUserProviderInterface: + '@Dbp\Relay\AuthBundle\Keycloak\KeycloakBearerUserProvider' Dbp\Relay\CoreBundle\API\UserSessionInterface: - '@Dbp\Relay\KeycloakBundle\Service\KeycloakUserSession' + '@Dbp\Relay\AuthBundle\Service\KeycloakUserSession' Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface: - '@Dbp\Relay\KeycloakBundle\Keycloak\KeycloakBearerAuthenticator' + '@Dbp\Relay\AuthBundle\Keycloak\KeycloakBearerAuthenticator' diff --git a/src/Service/KeycloakUserSession.php b/src/Service/KeycloakUserSession.php index 41bfd3ca6b52b020d4896f6bea3b4a8ecc72ab9e..2a15ef7d99a964d080c947c48a78d85a63753a27 100644 --- a/src/Service/KeycloakUserSession.php +++ b/src/Service/KeycloakUserSession.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Service; +namespace Dbp\Relay\AuthBundle\Service; use Dbp\Relay\CoreBundle\API\UserSessionInterface; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; diff --git a/tests/DummyUserProvider.php b/tests/DummyUserProvider.php index ee533441f64b84cda3914ae61216a0f5a69eee84..4f21cac20a5d803ff8981c79a82925f7d71d7e43 100644 --- a/tests/DummyUserProvider.php +++ b/tests/DummyUserProvider.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Tests; +namespace Dbp\Relay\AuthBundle\Tests; -use Dbp\Relay\KeycloakBundle\Keycloak\KeycloakBearerUserProviderInterface; +use Dbp\Relay\AuthBundle\Keycloak\KeycloakBearerUserProviderInterface; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Core\User\UserInterface; diff --git a/tests/DummyUserSession.php b/tests/DummyUserSession.php index 302c1257a826d0d788cc9e0d919e3d462d44e7e5..019e3a21d78b9fb09086fb69d8d8d1f2286e9f68 100644 --- a/tests/DummyUserSession.php +++ b/tests/DummyUserSession.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Tests; +namespace Dbp\Relay\AuthBundle\Tests; use Dbp\Relay\CoreBundle\API\UserSessionInterface; diff --git a/tests/Kernel.php b/tests/Kernel.php index b90fd7a025e116b9cb41c235f525d40a76952490..3b9a0eb1e7d8b61bcf8634ef315bf4ae81af834b 100644 --- a/tests/Kernel.php +++ b/tests/Kernel.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Tests; +namespace Dbp\Relay\AuthBundle\Tests; use ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle; +use Dbp\Relay\AuthBundle\DbpRelayAuthBundle; use Dbp\Relay\CoreBundle\DbpRelayCoreBundle; -use Dbp\Relay\KeycloakBundle\DbpRelayKeycloakBundle; use Nelmio\CorsBundle\NelmioCorsBundle; use Symfony\Bundle\FrameworkBundle\FrameworkBundle; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; @@ -28,7 +28,7 @@ class Kernel extends BaseKernel yield new TwigBundle(); yield new NelmioCorsBundle(); yield new ApiPlatformBundle(); - yield new DbpRelayKeycloakBundle(); + yield new DbpRelayAuthBundle(); yield new DbpRelayCoreBundle(); } diff --git a/tests/KernelTest.php b/tests/KernelTest.php index b3dae30dda9949a448616ad45d7f0d15086ace55..7c5a27e27d5053e8d9dda7acc89d2875e068e24d 100644 --- a/tests/KernelTest.php +++ b/tests/KernelTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Tests; +namespace Dbp\Relay\AuthBundle\Tests; use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase; diff --git a/tests/Keycloak/KeycloakBearerAuthenticatorTest.php b/tests/Keycloak/KeycloakBearerAuthenticatorTest.php index 2b196d13e8611c8a16e696ba8805c8eef739ba00..589d76abbdf3075a6ae7ae5437c6ac9cd409bdb5 100644 --- a/tests/Keycloak/KeycloakBearerAuthenticatorTest.php +++ b/tests/Keycloak/KeycloakBearerAuthenticatorTest.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Tests\Keycloak; +namespace Dbp\Relay\AuthBundle\Tests\Keycloak; use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase; -use Dbp\Relay\KeycloakBundle\Keycloak\KeycloakBearerAuthenticator; -use Dbp\Relay\KeycloakBundle\Keycloak\KeycloakBearerUser; -use Dbp\Relay\KeycloakBundle\Tests\DummyUserProvider; +use Dbp\Relay\AuthBundle\Keycloak\KeycloakBearerAuthenticator; +use Dbp\Relay\AuthBundle\Keycloak\KeycloakBearerUser; +use Dbp\Relay\AuthBundle\Tests\DummyUserProvider; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\Exception\BadCredentialsException; diff --git a/tests/Keycloak/KeycloakBearerUserProviderTest.php b/tests/Keycloak/KeycloakBearerUserProviderTest.php index 91f8d40a394c4fe72166a078cf16c9c3c376816f..1579c2ecb09d4467002c72140e6321cb3f91c7dc 100644 --- a/tests/Keycloak/KeycloakBearerUserProviderTest.php +++ b/tests/Keycloak/KeycloakBearerUserProviderTest.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Tests\Keycloak; +namespace Dbp\Relay\AuthBundle\Tests\Keycloak; use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase; -use Dbp\Relay\KeycloakBundle\Keycloak\KeycloakBearerUserProvider; -use Dbp\Relay\KeycloakBundle\Tests\DummyUserSession; +use Dbp\Relay\AuthBundle\Keycloak\KeycloakBearerUserProvider; +use Dbp\Relay\AuthBundle\Tests\DummyUserSession; class KeycloakBearerUserProviderTest extends ApiTestCase { diff --git a/tests/Keycloak/KeycloakBearerUserTest.php b/tests/Keycloak/KeycloakBearerUserTest.php index 747051c09d754eb8bb50a8399c2a3d4b0cca98ef..3719941e35a0afdad2ce4f0a7cc61a07005aee80 100644 --- a/tests/Keycloak/KeycloakBearerUserTest.php +++ b/tests/Keycloak/KeycloakBearerUserTest.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Tests\Keycloak; +namespace Dbp\Relay\AuthBundle\Tests\Keycloak; -use Dbp\Relay\KeycloakBundle\Keycloak\KeycloakBearerUser; +use Dbp\Relay\AuthBundle\Keycloak\KeycloakBearerUser; use PHPUnit\Framework\TestCase; class KeycloakBearerUserTest extends TestCase diff --git a/tests/Keycloak/KeycloakLocalTokenValidatorTest.php b/tests/Keycloak/KeycloakLocalTokenValidatorTest.php index 59ab190d85e416bf4d3d63e10f5590d962f3d725..64a1bd262166f86bbd9dde5ec0af3ab39fd95293 100644 --- a/tests/Keycloak/KeycloakLocalTokenValidatorTest.php +++ b/tests/Keycloak/KeycloakLocalTokenValidatorTest.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Tests\Keycloak; +namespace Dbp\Relay\AuthBundle\Tests\Keycloak; -use Dbp\Relay\KeycloakBundle\Keycloak\Keycloak; -use Dbp\Relay\KeycloakBundle\Keycloak\KeycloakLocalTokenValidator; -use Dbp\Relay\KeycloakBundle\Keycloak\TokenValidationException; +use Dbp\Relay\AuthBundle\Keycloak\Keycloak; +use Dbp\Relay\AuthBundle\Keycloak\KeycloakLocalTokenValidator; +use Dbp\Relay\AuthBundle\Keycloak\TokenValidationException; use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\HandlerStack; use GuzzleHttp\Psr7\Response; diff --git a/tests/Keycloak/KeycloakRemoteTokenValidatorTest.php b/tests/Keycloak/KeycloakRemoteTokenValidatorTest.php index f88698014921f7f9b789f9303f30b355f9292d5a..b8d10d622f8f0c755570ebb1b21f63d4124ff95e 100644 --- a/tests/Keycloak/KeycloakRemoteTokenValidatorTest.php +++ b/tests/Keycloak/KeycloakRemoteTokenValidatorTest.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Tests\Keycloak; +namespace Dbp\Relay\AuthBundle\Tests\Keycloak; -use Dbp\Relay\KeycloakBundle\Keycloak\Keycloak; -use Dbp\Relay\KeycloakBundle\Keycloak\KeycloakRemoteTokenValidator; -use Dbp\Relay\KeycloakBundle\Keycloak\TokenValidationException; +use Dbp\Relay\AuthBundle\Keycloak\Keycloak; +use Dbp\Relay\AuthBundle\Keycloak\KeycloakRemoteTokenValidator; +use Dbp\Relay\AuthBundle\Keycloak\TokenValidationException; use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\HandlerStack; use GuzzleHttp\Psr7\Response; diff --git a/tests/Keycloak/KeycloakTest.php b/tests/Keycloak/KeycloakTest.php index b4ab38f0aa6b5747823597e883c2621850ebc49a..325be286e4a9a954b5c52b2ff31b2f23c86818f3 100644 --- a/tests/Keycloak/KeycloakTest.php +++ b/tests/Keycloak/KeycloakTest.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Tests\Keycloak; +namespace Dbp\Relay\AuthBundle\Tests\Keycloak; -use Dbp\Relay\KeycloakBundle\Keycloak\Keycloak; +use Dbp\Relay\AuthBundle\Keycloak\Keycloak; use PHPUnit\Framework\TestCase; class KeycloakTest extends TestCase diff --git a/tests/Keycloak/KeycloakUserSessionTest.php b/tests/Keycloak/KeycloakUserSessionTest.php index 86c145188c8710a52cfe13dff469d9c44889c1fe..adb98348d7f7eb0fee50a8354681cff57d2f4027 100644 --- a/tests/Keycloak/KeycloakUserSessionTest.php +++ b/tests/Keycloak/KeycloakUserSessionTest.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Dbp\Relay\KeycloakBundle\Tests\Keycloak; +namespace Dbp\Relay\AuthBundle\Tests\Keycloak; -use Dbp\Relay\KeycloakBundle\Service\KeycloakUserSession; +use Dbp\Relay\AuthBundle\Service\KeycloakUserSession; use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;