Skip to content

Commit

Permalink
Allow "use_authorization_to_get_token" to be configured to false for …
Browse files Browse the repository at this point in the history
…generic OAuth2
  • Loading branch information
Christian Pernot committed Jan 14, 2022
1 parent bc4e5ec commit f8490d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f8490d7

Please sign in to comment.