diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--extensions/auth-inline.lua (renamed from extensions/simple-authentication.lua)17
1 file changed, 15 insertions, 2 deletions
diff --git a/extensions/simple-authentication.lua b/extensions/auth-inline.lua
index 23d3457..91e8805 100644
--- a/extensions/simple-authentication.lua
+++ b/extensions/auth-inline.lua
@@ -1,6 +1,19 @@
--- This script may be used with the auth-filter. Be sure to configure it as you wish.
+-- cgit auth-filter that gates repositories behind a login form and a
+-- signed session cookie.
--
--- Requirements:
+-- This is the INLINE variant. The user accounts and the per-repository
+-- access lists are written directly in this script, in the two tables
+-- below. Edit them here and reload. This suits a small fixed set of
+-- users that rarely changes.
+--
+-- The companion auth-file.lua behaves identically but reads its accounts
+-- and access lists from files on disk instead, which suits larger or
+-- externally managed user sets.
+--
+-- Enable it in cgitrc with
+-- auth-filter=lua:/path/to/auth-inline.lua
+--
+-- Requirements
-- luaossl
-- <http://25thandclement.com/~william/projects/luaossl.html>
-- luaposix