about summary refs log tree commit diff stats
path: root/classes/Config.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-01-23 16:58:26 +0300
committerAndrew Dolgov <fox@fakecake.org>2024-01-23 16:58:26 +0300
commit3946e9546604e531b0f3eb7849dd6d2dea247d9c (patch)
tree1e77eac130594be9682b0b41a1c270057faa0785 /classes/Config.php
parent452ad8003719bb467d9c8eb041f726aa19f95125 (diff)
downloadthe-epube-3946e9546604e531b0f3eb7849dd6d2dea247d9c.tar.gz
the-epube-3946e9546604e531b0f3eb7849dd6d2dea247d9c.tar.xz
add basic oidc support
Diffstat (limited to 'classes/Config.php')
-rw-r--r--classes/Config.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/Config.php b/classes/Config.php
index b445973..3fc8358 100644
--- a/classes/Config.php
+++ b/classes/Config.php
@@ -15,6 +15,10 @@ class Config {
 	const DICT_SERVER = "DICT_SERVER";
 	const SESSION_LIFETIME = "SESSION_LIFETIME";
 	const SESSION_NAME = "SESSION_NAME";
+	const OIDC_NAME = "OIDC_NAME";
+	const OIDC_URL = "OIDC_URL";
+	const OIDC_CLIENT_ID = "OIDC_CLIENT_ID";
+	const OIDC_CLIENT_SECRET = "OIDC_CLIENT_SECRET";
 
 	private const _DEFAULTS = [
 		Config::DB_TYPE => [ "sqlite", Config::T_STRING ],
@@ -24,6 +28,10 @@ class Config {
 		Config::DICT_SERVER => [ "", Config::T_STRING ],
 		Config::SESSION_LIFETIME => [ 86400*30, Config::T_INT ],
 		Config::SESSION_NAME => [ "epube_sid", Config::T_STRING ],
+		Config::OIDC_NAME => [ "OIDC", Config::T_STRING ],
+		Config::OIDC_URL => [ "", Config::T_STRING ],
+		Config::OIDC_CLIENT_ID => [ "", Config::T_STRING ],
+		Config::OIDC_CLIENT_SECRET => [ "", Config::T_STRING ],
 	];
 
 	private static ?Config $instance = null;