aboutsummaryrefslogtreecommitdiff
path: root/config.ini
diff options
context:
space:
mode:
authorwinter Sparkles2026-08-08 23:01:51 +0100
committerwinter Sparkles2026-08-08 23:01:51 +0100
commitb422b6ded608807c7d3bb8b965b3797ca513610b (patch)
tree7925fa972efbfff2a9bf8648334d49e3fd6b5df1 /config.ini
parent880a274e1ecbed42c76d3dc4a81161b3ae372726 (diff)
implement a large chunk of the auth system itself :D
Diffstat (limited to 'config.ini')
-rw-r--r--config.ini19
1 files changed, 19 insertions, 0 deletions
diff --git a/config.ini b/config.ini
index bb88a55..f5a083c 100644
--- a/config.ini
+++ b/config.ini
@@ -14,8 +14,27 @@ primary-domain = auth.example.com
;; this is required for AGPL compliance
source-location = https://git.зима.net/winter/pleasant-sso/
+
[integration]
;; what string to put on the front of header names destined for proxies
;; e.g. if this is 'X-Login', it will make headers like 'X-Login-User'
header-prefix = X-Login
+
+
+[auth]
+
+;; what AuthProvider to use - i.e. who to ask for users' information
+;; ConfigFile -> look in this file, see below
+provider = ConfigFile
+
+
+;; this next section allows you to define users very simple here in the config
+;; file, in case you don't want to use an external auth provider (set above)
+;; but if you are using an external provider it's okay to remove all of this
+[users]
+
+;; <user>.password-hash -> allow password login for user
+;; password hash should be generated by php function 'password_hash'
+winter.password-hash = "$2y$12$V3dwpbHF5fTx46g9xMflvODNGmr0apltiaDONUSE2skRrslgcRxSS"
+;; more options to be added in future!