whitelist depending on the URI

This commit is contained in:
A.Unger
2020-12-01 17:10:04 +01:00
parent 348c54f2e7
commit 28e8f75ebd
3 changed files with 21 additions and 3 deletions

View File

@@ -9,6 +9,11 @@ import (
var SupportedAuthStrategies []string
// ProxyWwwAuthenticate is a list of endpoints that do not rely on reva underlying authentication, such as ocs.
// services that fallback to reva authentication are declared in the "frontend" command on OCIS.
// TODO this should be a regexp, or it can be confused with routes that contain "/ocs" somewhere along the URI
var ProxyWwwAuthenticate = []string{"ocs"}
type statusRecorder struct {
http.ResponseWriter
status int