4 Commits

Author SHA1 Message Date
4a69b5d9fe fix: symfony 7.4 comp fixes 2026-04-30 13:30:04 +02:00
3aedf851ef feat!: symfony7 compatibility 2026-04-30 13:05:21 +02:00
338850c5ce fix deprecation of eraseCredentials function return type 2026-01-04 21:05:16 +01:00
Richard Toth
ae1a996ace update composer.json (guzzle update) 2025-12-19 13:40:59 +01:00
5 changed files with 16 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ use Symfony\Component\HttpKernel\DependencyInjection\Extension;
class ABELkeycloakBearerOnlyAdapterExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');

View File

@@ -10,7 +10,7 @@ use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder("abel_keycloak_bearer_only_adapter");

View File

@@ -258,8 +258,11 @@ class KeycloakBearerUser implements UserInterface
*
* This is important if, at any given point, sensitive information like
* the plain-text password is stored on this object.
*
* @return void
*/
public function eraseCredentials()
#[\Deprecated]
public function eraseCredentials(): void
{
// TODO: Implement eraseCredentials() method.
}

View File

@@ -83,7 +83,7 @@ class KeycloakBearerUserProvider implements UserProviderInterface{
* @param string $class
* @return bool
*/
public function supportsClass(string $class)
public function supportsClass(string $class): bool
{
return KeycloakBearerUser::class === $class || is_subclass_of($class, KeycloakBearerUser::class);
}

View File

@@ -1,22 +1,22 @@
{
"name": "abel/keycloak-bearer-only-adapter-bundle",
"name": "tothbt/keycloak-adapter-bundle",
"description": "Keycloak security adapter for bearer only clients",
"license": "MIT",
"type": "symfony-bundle",
"authors": [
{
"name": "Abdellah Elmakhroubi",
"email": "abdellah.elmakhroubi@gmail.com"
"name": "Richard Toth",
"email": "info@totbt.com"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=7.2.5",
"symfony/config": "^6.0",
"symfony/dependency-injection": "^6.0",
"symfony/http-kernel": "^6.0",
"symfony/security-bundle": "^6.0",
"guzzlehttp/guzzle": "^6.3",
"php": ">=8.3",
"symfony/config": "^6.0 || ^7.0",
"symfony/dependency-injection": "^6.0 || ^7.0",
"symfony/http-kernel": "^6.0 || ^7.0",
"symfony/security-bundle": "^6.0 || ^7.0",
"guzzlehttp/guzzle": "^7",
"ext-json": "*"
},
"autoload": {