1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-01 17:38:33 +00:00
forgejo/routers/api/v1
Squel 8c81dca8b9 feat: allow access to /api/v1/packages/{username} without token (#7716)
- Only require tokens on package endpoints that modify packages, this being deletion of a package and (un)link of a package.
- Allows reading data via the API of otherwise public data
- Integration test added.

Some references to related past commits:
- de484e86bc Started requiring tokens for reading packages "mimicking the design of GitHub OAuth scopes".
- 18de83b2a3 Adjusted the scope further, but kept the GitHub design.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7716
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Squel <squeljur+git@gmail.com>
Co-committed-by: Squel <squeljur+git@gmail.com>
2025-04-29 14:37:19 +00:00
..
activitypub add port and schema to federation host (#7203) 2025-04-16 08:07:51 +00:00
admin chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
misc feat(sec): Add SSH signing support for instances (#6897) 2025-04-11 13:25:35 +00:00
notify chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
org chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
packages chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repo chore: simplify GetDiff (#7682) 2025-04-27 19:49:59 +00:00
settings chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
shared chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
swagger feat: sync forks (#2364) 2025-04-07 07:00:38 +00:00
user Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
utils chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
api.go feat: allow access to /api/v1/packages/{username} without token (#7716) 2025-04-29 14:37:19 +00:00