Skip to content

Commit 15308df

Browse files
committed
Add env option for activating the OIDC plugin
Adds the ability to activate the OIDC plugin using an environment variable. Setting the env var 'ATOM_ACTIVATE_OIDC_PLUGIN' to "true" before starting AtoM will activate the OIDC plugin.
1 parent b3a4704 commit 15308df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ cypress.env.json
5050
# IDE-specific files
5151
.vscode/
5252
*.code-workspace
53+
54+
# OIDC plugin activation flag
55+
activate-oidc-plugin

config/ProjectConfiguration.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public function setup()
5050

5151
// Check if the OIDC plugin should be enabled.
5252
$filePath = 'activate-oidc-plugin';
53-
if (file_exists($filePath) && 0 === filesize($filePath)) {
53+
$activateOidcEnv = filter_var(getenv('ATOM_ACTIVATE_OIDC_PLUGIN'), FILTER_VALIDATE_BOOLEAN);
54+
if ((file_exists($filePath) && 0 === filesize($filePath)) || $activateOidcEnv) {
5455
$plugins[] = 'arOidcPlugin';
5556
}
5657

0 commit comments

Comments
 (0)