diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index ea8c79c35..dea103330 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -227,7 +227,13 @@ private function addResourceOwnersConfiguration(ArrayNodeDefinition $node): void ->end() ->scalarNode('use_authorization_to_get_token') ->validate() - ->ifEmpty() + ->ifTrue(function ($v) { + if (false === $v) { + return false; + } + + return empty($v); + }) ->thenUnset() ->end() ->end()