Skip to content

Commit

Permalink
Merge pull request #1879 from kriks57/fix-config-use-authorization-to…
Browse files Browse the repository at this point in the history
…-get-token

Allow "use_authorization_to_get_token" to be configured to false for generic OAuth2
  • Loading branch information
stloyd authored Jul 21, 2022
2 parents 88455e6 + f8490d7 commit 3a50983
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 3a50983

Please sign in to comment.