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.
4e879fed90
## 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 | |
---|---|---|
.. | ||
config | 1 year ago | |
actions.go | 1 year ago | |
actions_test.go | 2 years ago | |
admin.go | 2 years ago | |
api.go | 2 years ago | |
asset_dynamic.go | 2 years ago | |
asset_static.go | 2 years ago | |
attachment.go | 1 year ago | |
attachment_test.go | 2 years ago | |
cache.go | 2 years ago | |
camo.go | 2 years ago | |
config.go | 1 year ago | |
config_env.go | 1 year ago | |
config_env_test.go | 1 year ago | |
config_provider.go | 1 year ago | |
config_provider_test.go | 1 year ago | |
cors.go | 2 years ago | |
cron.go | 2 years ago | |
cron_test.go | 2 years ago | |
database.go | 1 year ago | |
database_sqlite.go | 2 years ago | |
database_test.go | 1 year ago | |
federation.go | 2 years ago | |
git.go | 2 years ago | |
git_test.go | 2 years ago | |
highlight.go | 2 years ago | |
i18n.go | 2 years ago | |
incoming_email.go | 2 years ago | |
indexer.go | 2 years ago | |
indexer_test.go | 2 years ago | |
lfs.go | 2 years ago | |
lfs_test.go | 2 years ago | |
log.go | 2 years ago | |
log_test.go | 2 years ago | |
mailer.go | 2 years ago | |
mailer_test.go | 2 years ago | |
markup.go | 2 years ago | |
metrics.go | 2 years ago | |
migrations.go | 2 years ago | |
mime_type_map.go | 2 years ago | |
mirror.go | 2 years ago | |
oauth2.go | 1 year ago | |
other.go | 2 years ago | |
packages.go | 2 years ago | |
packages_test.go | 2 years ago | |
path.go | 2 years ago | |
path_test.go | 2 years ago | |
picture.go | 2 years ago | |
project.go | 2 years ago | |
proxy.go | 2 years ago | |
queue.go | 1 year ago | |
repository.go | 1 year ago | |
repository_archive.go | 2 years ago | |
repository_archive_test.go | 2 years ago | |
security.go | 1 year ago | |
server.go | 1 year ago | |
service.go | 1 year ago | |
service_test.go | 2 years ago | |
session.go | 1 year ago | |
setting.go | 2 years ago | |
setting_test.go | 2 years ago | |
ssh.go | 1 year ago | |
storage.go | 1 year ago | |
storage_test.go | 1 year ago | |
task.go | 2 years ago | |
time.go | 2 years ago | |
ui.go | 1 year ago | |
webhook.go | 2 years ago |