Commit dc5e4ef
Remove ReverseProxy authentication from the API (go-gitea#22219)
Since we changed the /api/v1/ routes to disallow session authentication
we also removed their reliance on CSRF. However, we left the
ReverseProxy authentication here - but this means that POSTs to the API
are no longer protected by CSRF.
Now, ReverseProxy authentication is a kind of session authentication,
and is therefore inconsistent with the removal of session from the API.
This PR proposes that we simply remove the ReverseProxy authentication
from the API and therefore users of the API must explicitly use tokens
or basic authentication.
Replace go-gitea#22077
Close go-gitea#22221
Close go-gitea#22077
Signed-off-by: Andrew Thornton <[email protected]>1 parent 4845093 commit dc5e4ef
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | 235 | | |
239 | | - | |
| 236 | + | |
240 | 237 | | |
241 | 238 | | |
242 | 239 | | |
| |||
595 | 592 | | |
596 | 593 | | |
597 | 594 | | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | 595 | | |
602 | 596 | | |
603 | 597 | | |
| |||
681 | 675 | | |
682 | 676 | | |
683 | 677 | | |
684 | | - | |
| 678 | + | |
685 | 679 | | |
686 | 680 | | |
687 | 681 | | |
| |||
0 commit comments