Skip to content

Commit

Permalink
Merge pull request #48 from saloonphp/fix/connector-command-oauth
Browse files Browse the repository at this point in the history
Fix | Fixed Every Connector Having OAuth
  • Loading branch information
Sammyjo20 authored Sep 28, 2023
2 parents d3b499d + 09dfc5c commit 92599e3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Console/Commands/MakeConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,8 @@ protected function afterPromptingForMissingArguments(InputInterface $input, Outp
return;
}

$type = $this->choice('Should the connector support OAuth?', [
true => 'Yes',
false => 'No',
]);
$supportOauth = $this->confirm('Should the connector support OAuth? (Authorization Code Grant)');

$input->setOption('oauth', $type);
$input->setOption('oauth', $supportOauth);
}
}

0 comments on commit 92599e3

Please sign in to comment.