Allow all browser calls to honor multi-users (#6645)

- GetAuth
- SetAuth
- GenerateAuth

Disallow changing bucket level metadata or creating/deleting buckets.
This commit is contained in:
Harshavardhana
2018-10-17 16:23:09 -07:00
committed by kannappanr
parent ae3c05aa37
commit 2e81f27d27
5 changed files with 129 additions and 44 deletions
-5
View File
@@ -205,11 +205,6 @@ func webTokenAuthenticate(token string) (jwtgo.StandardClaims, bool, error) {
return claims, owner, nil
}
func isHTTPRequestValid(req *http.Request) bool {
_, _, err := webRequestAuthenticate(req)
return err == nil
}
// Check if the request is authenticated.
// Returns nil if the request is authenticated. errNoAuthToken if token missing.
// Returns errAuthentication for all other errors.