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/web
KN4CK3R 9b1b4b5433
Refactor Webhook + Add X-Hub-Signature (#16176)
This PR removes multiple unneeded fields from the `HookTask` struct and adds the two headers `X-Hub-Signature` and `X-Hub-Signature-256`.

## ⚠️ BREAKING ⚠️ 

* The `Secret` field is no longer passed as part of the payload.
* "Breaking" change (or fix?): The webhook history shows the real called url and not the url registered in the webhook (`deliver.go`@129).

Close #16115
Fixes #7788
Fixes #11755

Co-authored-by: zeripath <art27@cantab.net>
4 years ago
..
admin Make allowed Visiblity modes configurable for Users (#16271) 4 years ago
dev Refactor routers directory (#15800) 4 years ago
events Refactor routers directory (#15800) 4 years ago
explore Refactor routers directory (#15800) 4 years ago
org Add Visible modes function from Organisation to Users too (#16069) 4 years ago
repo Refactor Webhook + Add X-Hub-Signature (#16176) 4 years ago
user Make allowed Visiblity modes configurable for Users (#16271) 4 years ago
base.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 4 years ago
goget.go Refactor routers directory (#15800) 4 years ago
home.go Refactor routers directory (#15800) 4 years ago
metrics.go Refactor routers directory (#15800) 4 years ago
swagger_json.go Refactor routers directory (#15800) 4 years ago
web.go Add tag protection (#15629) 4 years ago