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/templates
Jack Hay 4e879fed90
Deprecate query string auth tokens (#28390)
## 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: delvh <dev.lh@web.de>
1 year ago
..
admin Remove autofocus in search box (#28033) 1 year ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2 years ago
base Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419) 1 year ago
code Remove autofocus in search box (#28033) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
devtest Improve dropdown button alignment and fix hover bug (#27632) 1 year ago
explore Keep profile tab when clicking on Language (#28320) 1 year ago
mail Update team invitation email link (#26550) 1 year ago
org Issue fixes for RSS feed improvements (#28380) 1 year ago
package Let `curl` write the content to file (#28427) 1 year ago
projects Use full width for project boards (#28225) 1 year ago
repo Issue fixes for RSS feed improvements (#28380) 1 year ago
shared Refactor template empty checks (#28351) 1 year ago
status Clean up template locale usage (#27856) 1 year ago
swagger Deprecate query string auth tokens (#28390) 1 year ago
user Improve text in Security settings (#28393) 1 year ago
webhook Extract common code to new template (#26933) 1 year ago
home.tmpl Fix more "locale" usages (#27259) 1 year ago
install.tmpl Fix more "locale" usages (#27259) 1 year ago
post-install.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago