partial authentication in ctl websocket

This commit is contained in:
2025-03-13 09:43:17 +09:00
parent 8105545e98
commit 4d3fb7db65
3 changed files with 39 additions and 4 deletions

View File

@ -378,6 +378,10 @@ func (auth *HttpAuthConfig) Authenticate(req *http.Request) (int, string) {
} else if rule.Action == HTTP_ACCESS_REJECT {
return http.StatusForbidden, ""
}
// HTTP_ACCESS_AUTH_REQUIRED.
// move on to authentication if enabled. acceped if disabled
break
}
}
}