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