From 3a0e46f0a5fa5dab921087dc422c86505af1d522 Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Thu, 7 Oct 2021 15:49:32 +0200 Subject: [PATCH] Rename from keycloack-bundle to auth-bundle We want this bundle to work with all kind of OIDC servers in the future. Fixes #2 --- .gitignore | 3 ++- README.md | 10 +++++----- composer.json | 6 +++--- phpunit.xml.dist | 2 +- ...ayKeycloakBundle.php => DbpRelayAuthBundle.php} | 4 ++-- src/DependencyInjection/Configuration.php | 4 ++-- ...loakExtension.php => DbpRelayAuthExtension.php} | 6 +++--- src/Helpers/Tools.php | 2 +- src/Keycloak/Keycloak.php | 2 +- src/Keycloak/KeycloakBearerAuthenticator.php | 2 +- src/Keycloak/KeycloakBearerUser.php | 2 +- src/Keycloak/KeycloakBearerUserProvider.php | 2 +- .../KeycloakBearerUserProviderInterface.php | 2 +- src/Keycloak/KeycloakLocalTokenValidator.php | 4 ++-- src/Keycloak/KeycloakRemoteTokenValidator.php | 4 ++-- src/Keycloak/KeycloakTokenValidatorBase.php | 2 +- src/Keycloak/TokenValidationException.php | 2 +- src/Resources/config/services.yaml | 14 +++++++------- src/Service/KeycloakUserSession.php | 2 +- tests/DummyUserProvider.php | 4 ++-- tests/DummyUserSession.php | 2 +- tests/Kernel.php | 6 +++--- tests/KernelTest.php | 2 +- tests/Keycloak/KeycloakBearerAuthenticatorTest.php | 8 ++++---- tests/Keycloak/KeycloakBearerUserProviderTest.php | 6 +++--- tests/Keycloak/KeycloakBearerUserTest.php | 4 ++-- tests/Keycloak/KeycloakLocalTokenValidatorTest.php | 8 ++++---- .../Keycloak/KeycloakRemoteTokenValidatorTest.php | 8 ++++---- tests/Keycloak/KeycloakTest.php | 4 ++-- tests/Keycloak/KeycloakUserSessionTest.php | 4 ++-- 30 files changed, 66 insertions(+), 65 deletions(-) rename src/{DbpRelayKeycloakBundle.php => DbpRelayAuthBundle.php} (72%) rename src/DependencyInjection/{DbpRelayKeycloakExtension.php => DbpRelayAuthExtension.php} (87%) diff --git a/.gitignore b/.gitignore index 577221d..9909522 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 c261483..8754fab 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 021e0bb..89bae83 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 199ab6f..f5a4927 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 47fbd70..3440136 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 f489429..ba387bb 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 ec5e746..a501167 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 6f6d6f3..124782e 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 5c79b61..1d6762b 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 f0657e5..141e657 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 bcfcb2d..846324c 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 2034fb2..c8b2fcd 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 0224914..b0bbbd2 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 9aada99..1d3e535 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 e104f6f..c416673 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 9fc54c7..9b7153e 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 7853c9c..4f2530f 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 d141b30..0b40a65 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 41bfd3c..2a15ef7 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 ee53344..4f21cac 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 302c125..019e3a2 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 b90fd7a..3b9a0eb 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 b3dae30..7c5a27e 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 2b196d1..589d76a 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 91f8d40..1579c2e 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 747051c..3719941 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 59ab190..64a1bd2 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 f886980..b8d10d6 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 b4ab38f..325be28 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 86c1451..adb9834 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; -- GitLab