mirror of https://github.com/go-gitea/gitea.git
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.
Backport #28390 by @jackHay22 ## Changes - Add deprecation warning to `Token` and `AccessToken` authentication methods in swagger. - Add deprecation warning header to API response. Example: ``` HTTP/1.1 200 OK ... Warning: token and access_token API authentication is deprecated ... ``` - Add setting `DISABLE_QUERY_AUTH_TOKEN` to reject query string auth tokens entirely. Default is `false` ## Next steps - `DISABLE_QUERY_AUTH_TOKEN` should be true in a subsequent release and the methods should be removed in swagger - `DISABLE_QUERY_AUTH_TOKEN` should be removed and the implementation of the auth methods in question should be removed ## Open questions - Should there be further changes to the swagger documentation? Deprecation is not yet supported for security definitions (coming in [OpenAPI Spec version 3.2.0](https://github.com/OAI/OpenAPI-Specification/issues/2506)) - Should the API router logger sanitize urls that use `token` or `access_token`? (This is obviously an insufficient solution on its own) Co-authored-by: Jack Hay <jack@allspice.io> Co-authored-by: delvh <dev.lh@web.de> |
1 year ago | |
---|---|---|
.. | ||
actions | 2 years ago | |
activitypub | 2 years ago | |
analyze | 2 years ago | |
assetfs | 2 years ago | |
auth | 2 years ago | |
avatar | 2 years ago | |
base | 2 years ago | |
cache | 2 years ago | |
charset | 2 years ago | |
container | 2 years ago | |
context | 1 year ago | |
contexttest | 2 years ago | |
csv | 2 years ago | |
doctor | 1 year ago | |
emoji | 2 years ago | |
eventsource | 1 year ago | |
generate | 2 years ago | |
git | 1 year ago | |
gitgraph | 1 year ago | |
graceful | 2 years ago | |
hcaptcha | 2 years ago | |
highlight | 2 years ago | |
hostmatcher | 1 year ago | |
html | 2 years ago | |
httpcache | 2 years ago | |
httplib | 2 years ago | |
indexer | 1 year ago | |
issue/template | 2 years ago | |
json | 2 years ago | |
label | 2 years ago | |
lfs | 2 years ago | |
log | 2 years ago | |
markup | 1 year ago | |
mcaptcha | 2 years ago | |
metrics | 2 years ago | |
migration | 2 years ago | |
nosql | 2 years ago | |
options | 2 years ago | |
packages | 1 year ago | |
paginator | 2 years ago | |
pprof | 2 years ago | |
private | 2 years ago | |
process | 2 years ago | |
proxy | 2 years ago | |
proxyprotocol | 2 years ago | |
public | 2 years ago | |
queue | 1 year ago | |
recaptcha | 2 years ago | |
references | 2 years ago | |
regexplru | 2 years ago | |
repository | 1 year ago | |
secret | 2 years ago | |
session | 2 years ago | |
setting | 1 year ago | |
sitemap | 2 years ago | |
ssh | 2 years ago | |
storage | 2 years ago | |
structs | 1 year ago | |
svg | 2 years ago | |
sync | 2 years ago | |
system | 2 years ago | |
templates | 1 year ago | |
test | 2 years ago | |
testlogger | 2 years ago | |
timeutil | 2 years ago | |
translation | 2 years ago | |
turnstile | 2 years ago | |
typesniffer | 2 years ago | |
updatechecker | 2 years ago | |
upload | 2 years ago | |
uri | 2 years ago | |
user | 2 years ago | |
util | 2 years ago | |
validation | 2 years ago | |
web | 1 year ago | |
webhook | 2 years ago |