From f8490d7f5a6d466e6f8c6d0b247fd665a6078c09 Mon Sep 17 00:00:00 2001 From: Christian Pernot Date: Fri, 14 Jan 2022 13:39:31 +0100 Subject: [PATCH] Allow "use_authorization_to_get_token" to be configured to false for generic OAuth2 --- DependencyInjection/Configuration.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 16c74ff0d..dbec16145 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -297,6 +297,9 @@ private function addResourceOwnersConfiguration(ArrayNodeDefinition $node) ->scalarNode('use_authorization_to_get_token') ->validate() ->ifTrue(function ($v) { + if (false === $v) { + return false; + } return empty($v); }) ->thenUnset()