Update to scoped oauth
This commit is contained in:
@@ -119,8 +119,9 @@ func (s *Server) doAuth(foo http.HandlerFunc) http.HandlerFunc {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
if boauthz, useoauth := config.GetBOAuthZ(); ok && useoauth {
|
||||
err := oauth2client.Authenticate(boauthz, w, r)
|
||||
if url, exists := config.GetBOAuthZ(); ok && exists {
|
||||
name := mapKey(r.Host)
|
||||
err := oauth2client.Authenticate(url, name, w, r)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user