mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 06:14:59 +00:00
msgraph: add metadata to users to connect with default calendar
This commit is contained in:
@@ -40,13 +40,10 @@ class AzureGetMachineAccessTokenCommand extends Command
|
||||
|
||||
protected function configure()
|
||||
{
|
||||
$this
|
||||
->addOption('tenant', 't', InputOption::VALUE_OPTIONAL, 'the tenant, usually the application name', 'common');
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$this->azure->tenant = $input->getOption('tenant');
|
||||
$this->azure->scope = ['https://graph.microsoft.com/.default'];
|
||||
$authorizationUrl = explode('?', $this->azure->getAuthorizationUrl(['prompt' => 'consent']));
|
||||
// replace the first part by the admin consent authorization url
|
||||
|
Reference in New Issue
Block a user