You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers
Giteabot d2efd2bf73
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>
2 years ago
..
api Require repo scope for PATs for private repos and basic authentication (#24362) (#24364) 2 years ago
common Support sanitising the URL by removing extra slashes in the URL (#21333) (#23300) 2 years ago
install Set `X-Gitea-Debug` header once (#23361) (#23381) 2 years ago
private Refactor the setting to make unit test easier (#22405) 2 years ago
utils Implement FSFE REUSE for golang files (#21840) 2 years ago
web Require repo scope for PATs for private repos and basic authentication (#24362) (#24364) 2 years ago
init.go Refactor `setting.Database.UseXXX` to methods (#23354) (#23356) 2 years ago