Plugin: AzureActiveDirectory: Check if plugin is enabled to do callback process

pull/4964/head
Angel Fernando Quiroz Campos 2 years ago
parent fafe1dbe25
commit 64a0062df6
  1. 4
      plugin/azure_active_directory/src/callback.php

@ -23,6 +23,10 @@ if (!empty($_GET['error']) && !empty($_GET['state'])) {
$plugin = AzureActiveDirectory::create();
if ('true' !== $plugin->get(AzureActiveDirectory::SETTING_ENABLE)) {
api_not_allowed(true);
}
$provider = $plugin->getProvider();
if (!isset($_GET['code'])) {

Loading…
Cancel
Save