]> source.dussan.org Git - gitea.git/commit
Require repo scope for PATs for private repos and basic authentication (#24362) ...
authorGiteabot <teabot@gitea.io>
Thu, 27 Apr 2023 00:57:51 +0000 (20:57 -0400)
committerGitHub <noreply@github.com>
Thu, 27 Apr 2023 00:57:51 +0000 (20:57 -0400)
commitd2efd2bf7363f8460e2ad6df01065fd30e7d3d4a
treea30901b8d45758f696c363f9db87cad1b355214d
parent89297c9355cf15fa733af900d9dcc4bb681bc137
Require repo scope for PATs for private repos and basic authentication (#24362) (#24364)

Backport #24362 by @jolheiser

> The scoped token PR just checked all API routes but in fact, some web
routes like `LFS`, git `HTTP`, container, and attachments supports basic
auth. This PR added scoped token check for them.

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
modules/context/permission.go
routers/api/packages/api.go
routers/web/repo/attachment.go
routers/web/repo/http.go
services/auth/basic.go
services/lfs/locks.go
services/lfs/server.go
tests/integration/api_packages_npm_test.go
tests/integration/api_packages_nuget_test.go
tests/integration/api_packages_pub_test.go
tests/integration/api_packages_vagrant_test.go