luci-base: add authentication plugin mechanism
authorHan Yiming <redacted>
Thu, 29 Jan 2026 09:23:37 +0000 (17:23 +0800)
committerPaul Donald <redacted>
Thu, 9 Apr 2026 12:26:09 +0000 (14:26 +0200)
commit4a308bab378851272d1795d14c624bc0a2250491
treea5c418626e1766cf7bcba3fe30aff420d7eedf38
parent53137db0d49f02a36c4f7c4318ba7f6ba35eb3c5
luci-base: add authentication plugin mechanism

This commit introduces a generic authentication plugin mechanism
to the LuCI dispatcher, enabling multi-factor authentication
(MFA/2FA) and other custom verification methods without
modifying core files.

This implementation integrates with the new plugin UI architecture
introduced in commit 617f364 (luci-mod-system: implement plugin UI
architecture), allowing authentication plugins to be managed
through the unified System > Plugins interface.

Signed-off-by: Han Yiming <redacted>
modules/luci-base/ucode/authplugins.uc [new file with mode: 0644]
modules/luci-base/ucode/dispatcher.uc
modules/luci-base/ucode/template/sysauth.ut
modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
plugins/luci-auth-example/Makefile [new file with mode: 0644]
plugins/luci-auth-example/README.md [new file with mode: 0644]
plugins/luci-auth-example/htdocs/luci-static/resources/view/plugins/d0ecde1b009d44ff82faa8b0ff219cef.js [new file with mode: 0644]
plugins/luci-auth-example/ucode/plugins/auth/login/d0ecde1b009d44ff82faa8b0ff219cef.uc [new file with mode: 0644]
themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/sysauth.ut
git clone https://git.99rst.org/PROJECT