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.
f144521aea
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 | |
---|---|---|
.. | ||
admin | 1 year ago | |
api/packages/pypi | 2 years ago | |
base | 1 year ago | |
code | 1 year ago | |
custom | 5 years ago | |
devtest | 1 year ago | |
explore | 1 year ago | |
1 year ago | ||
org | 1 year ago | |
package | 1 year ago | |
projects | 1 year ago | |
repo | 1 year ago | |
shared | 1 year ago | |
status | 1 year ago | |
swagger | 1 year ago | |
user | 1 year ago | |
webhook | 1 year ago | |
home.tmpl | 1 year ago | |
install.tmpl | 1 year ago | |
post-install.tmpl | 1 year ago |