mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-30 09:57:48 +01:00
e74c4e1be9
Some OAuth2 providers return quite large structured tokens >32767 bytes. Gitea currently has a fixed maximum of 32767 bytes for these and unfortunately due to the convoluted nature of the dependent libraries the error returned is rather opaque. Here we manage the error a little better - detecting the rather opaque github.com/gorilla/securecookie.errEncodedValueTooLong and converting it to a more readable error. Further we provide a configurable option to increase the maximum size of the provided OAuth2 tokens. Fix #9907 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> |
||
---|---|---|
.. | ||
adding-legal-pages.en-us.md | ||
api-usage.en-us.md | ||
api-usage.zh-cn.md | ||
ci-cd.en-us.md | ||
cmd-embedded.en-us.md | ||
config-cheat-sheet.en-us.md | ||
config-cheat-sheet.zh-cn.md | ||
customizing-gitea.en-us.md | ||
customizing-gitea.zh-cn.md | ||
external-renderers.en-us.md | ||
hacking-on-gitea.en-us.md | ||
hacking-on-gitea.zh-cn.md | ||
logging-documentation.en-us.md | ||
mail-templates-us.md | ||
make.en-us.md | ||
make.fr-fr.md | ||
make.zh-cn.md | ||
migrations.en-us.md | ||
oauth2-provider.md | ||
repo-indexer.en-us.md | ||
search-engines-indexation.en-us.md | ||
signing.en-us.md | ||
specific-variables.en-us.md | ||
specific-variables.zh-cn.md | ||
third-party-tools.en-us.md | ||
third-party-tools.zh-cn.md |