Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 50a560b6f4 | |||
| 4a69b5d9fe | |||
| 3aedf851ef |
@@ -6,12 +6,12 @@ namespace ABEL\Bundle\keycloakBearerOnlyAdapterBundle\DependencyInjection;
|
|||||||
use Symfony\Component\Config\FileLocator;
|
use Symfony\Component\Config\FileLocator;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
|
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
|
||||||
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
use Symfony\Component\DependencyInjection\Extension\Extension;
|
||||||
|
|
||||||
class ABELkeycloakBearerOnlyAdapterExtension extends 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 = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||||
$loader->load('services.xml');
|
$loader->load('services.xml');
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use Symfony\Component\Config\Definition\ConfigurationInterface;
|
|||||||
class Configuration implements ConfigurationInterface
|
class Configuration implements ConfigurationInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
public function getConfigTreeBuilder()
|
public function getConfigTreeBuilder(): TreeBuilder
|
||||||
{
|
{
|
||||||
$treeBuilder = new TreeBuilder("abel_keycloak_bearer_only_adapter");
|
$treeBuilder = new TreeBuilder("abel_keycloak_bearer_only_adapter");
|
||||||
|
|
||||||
|
|||||||
@@ -261,6 +261,7 @@ class KeycloakBearerUser implements UserInterface
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
#[\Deprecated]
|
||||||
public function eraseCredentials(): void
|
public function eraseCredentials(): void
|
||||||
{
|
{
|
||||||
// TODO: Implement eraseCredentials() method.
|
// TODO: Implement eraseCredentials() method.
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ class KeycloakBearerUserProvider implements UserProviderInterface{
|
|||||||
* @param string $class
|
* @param string $class
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function supportsClass(string $class)
|
public function supportsClass(string $class): bool
|
||||||
{
|
{
|
||||||
return KeycloakBearerUser::class === $class || is_subclass_of($class, KeycloakBearerUser::class);
|
return KeycloakBearerUser::class === $class || is_subclass_of($class, KeycloakBearerUser::class);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,10 +12,10 @@
|
|||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.3",
|
"php": ">=8.3",
|
||||||
"symfony/config": "^6.0",
|
"symfony/config": "^6.0 || ^7.0",
|
||||||
"symfony/dependency-injection": "^6.0",
|
"symfony/dependency-injection": "^6.0 || ^7.0",
|
||||||
"symfony/http-kernel": "^6.0",
|
"symfony/http-kernel": "^6.0 || ^7.0",
|
||||||
"symfony/security-bundle": "^6.0",
|
"symfony/security-bundle": "^6.0 || ^7.0",
|
||||||
"guzzlehttp/guzzle": "^7",
|
"guzzlehttp/guzzle": "^7",
|
||||||
"ext-json": "*"
|
"ext-json": "*"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user