mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
docs(cli): secure Unix socket proxy setup
This commit is contained in:
1 parent
16808e7403
commit
bb36fc5221
4 files changed
+19
No files matched your search
@@ -58,6 +58,13 @@ describe('authHook — authentication matrix', () => {
|
||||
['rejects /api/* with wrong token', '/api/v1/status', 'Bearer wrong_token', false, 401],
|
||||
['allows /api/* with correct token', '/api/v1/status', `Bearer ${VALID_TOKEN}`, false, 0],
|
||||
['rejects /_web/* without Bearer when requireAuth=true', '/_web/sessions', undefined, true, 401],
|
||||
[
|
||||
'rejects the token-bearing automation config without Bearer when requireAuth=true',
|
||||
'/_web/automation/config',
|
||||
undefined,
|
||||
true,
|
||||
401,
|
||||
],
|
||||
['rejects /_web/* with wrong token when requireAuth=true', '/_web/sessions', 'Bearer bad', true, 401],
|
||||
['allows /_web/* with correct token when requireAuth=true', '/_web/sessions', `Bearer ${VALID_TOKEN}`, true, 0],
|
||||
['allows static file paths without auth', '/index.html', undefined, false, 0],
|
||||
|
||||
Reference in new issue
Block a user