Skip to content

Commit

Permalink
Merge pull request #1763 from franmomu/hotfix_14
Browse files Browse the repository at this point in the history
Define hwi_oauth.connect.confirmation parameter
  • Loading branch information
XWB committed Jul 28, 2021
2 parents 5bd6e54 + 662e7a2 commit b9727c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DependencyInjection/HWIOAuthExtension.php
Expand Up @@ -175,6 +175,8 @@ protected function createHttplugClient(ContainerBuilder $container, array $confi
*/
private function createConnectIntegration(ContainerBuilder $container, array $config)
{
$container->setParameter('hwi_oauth.connect.confirmation', false);

if (isset($config['connect'])) {
$container->setParameter('hwi_oauth.connect', true);

Expand Down
1 change: 1 addition & 0 deletions Tests/DependencyInjection/HWIOAuthExtensionTest.php
Expand Up @@ -382,6 +382,7 @@ public function testConfigurationLoadDefaults()
$this->assertNotHasDefinition('hwi_oauth.user.provider.fosub_bridge');

$this->assertParameter(false, 'hwi_oauth.connect');
$this->assertParameter(false, 'hwi_oauth.connect.confirmation');

$this->assertAlias('security.user_checker', 'hwi_oauth.user_checker');
}
Expand Down

0 comments on commit b9727c4

Please sign in to comment.