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( diff --git a/docker/etc/oidc/arOidcPlugin/config/app.yml b/docker/etc/oidc/arOidcPlugin/config/app.yml index 5b028925e1..5196daccb5 100644 --- a/docker/etc/oidc/arOidcPlugin/config/app.yml +++ b/docker/etc/oidc/arOidcPlugin/config/app.yml @@ -64,7 +64,7 @@ all: - 'roles' user_matching_source: 'oidc-email' auto_create_atom_user: true - primary_provider_name: primary + primary_provider_name: demo provider_query_param_name: secondary redirect_url: 'http://127.0.0.1:63001/index.php/oidc/login' logout_redirect_url: 'http://127.0.0.1:63001' diff --git a/test/etc/oidc/arOidcPlugin/config/app.yml b/test/etc/oidc/arOidcPlugin/config/app.yml index f6cc0e403a..7b99356e3f 100644 --- a/test/etc/oidc/arOidcPlugin/config/app.yml +++ b/test/etc/oidc/arOidcPlugin/config/app.yml @@ -64,7 +64,7 @@ all: - 'roles' user_matching_source: 'oidc-email' auto_create_atom_user: true - primary_provider_name: primary + primary_provider_name: demo provider_query_param_name: secondary redirect_url: 'http://localhost/index.php/oidc/login' logout_redirect_url: 'http://127.0.0.1'