feat(auth,admin): add LinuxDO OAuth login and admin settings

Implement LinuxDO OAuth authorization-code login flow with state validation and local account binding, and add admin APIs/UI to manage OAuth runtime settings with URL validation and secret masking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
leeexinandClaude Opus 4.6 committed 2026-03-08 13:14:46 +08:00
1 parent 680b551efd
commit ae478755be
6 files changed
+355 -6

No files matched your search

+10 -1
View File
@@ -12,5 +12,14 @@
"max_action_length": 280,
"app_host": "0.0.0.0",
"app_port": 8095,
"debug": true
"debug": true,
"linuxdo_oauth": {
"enabled": false,
"client_id": "",
"client_secret": "",
"authorize_url": "https://connect.linux.do/oauth2/authorize",
"token_url": "https://connect.linux.do/oauth2/token",
"userinfo_url": "https://connect.linux.do/api/user",
"scope": "read"
}
}