mirror of https://github.com/go-gitea/gitea.git
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> |
5 years ago | |
---|---|---|
.. | ||
adding-legal-pages.en-us.md | 5 years ago | |
api-usage.en-us.md | 6 years ago | |
api-usage.zh-cn.md | 6 years ago | |
ci-cd.en-us.md | 5 years ago | |
cmd-embedded.en-us.md | 5 years ago | |
config-cheat-sheet.en-us.md | 5 years ago | |
config-cheat-sheet.zh-cn.md | 5 years ago | |
customizing-gitea.en-us.md | 5 years ago | |
customizing-gitea.zh-cn.md | 6 years ago | |
external-renderers.en-us.md | 5 years ago | |
hacking-on-gitea.en-us.md | 5 years ago | |
hacking-on-gitea.zh-cn.md | 6 years ago | |
logging-documentation.en-us.md | 5 years ago | |
mail-templates-us.md | 5 years ago | |
make.en-us.md | 7 years ago | |
make.fr-fr.md | 7 years ago | |
make.zh-cn.md | 6 years ago | |
migrations.en-us.md | 5 years ago | |
oauth2-provider.md | 6 years ago | |
repo-indexer.en-us.md | 5 years ago | |
search-engines-indexation.en-us.md | 5 years ago | |
signing.en-us.md | 5 years ago | |
specific-variables.en-us.md | 6 years ago | |
specific-variables.zh-cn.md | 6 years ago | |
third-party-tools.en-us.md | 5 years ago | |
third-party-tools.zh-cn.md | 5 years ago |