diff --git a/config/ProjectConfiguration.class.php b/config/ProjectConfiguration.class.php index f8b866a8dc..6298d877fb 100644 --- a/config/ProjectConfiguration.class.php +++ b/config/ProjectConfiguration.class.php @@ -48,6 +48,12 @@ public function setup() 'sfPluginAdminPlugin', ]; + // Check if the OIDC plugin should be enabled. + $filePath = 'activate-oidc-plugin'; + if (file_exists($filePath) && filesize($filePath) === 0) { + $plugins[] = 'arOidcPlugin'; + } + $this->enablePlugins($plugins); $this->dispatcher->connect(