gitea/docs/content/doc/advanced
zeripath e74c4e1be9
Add option to increase provided OAuth2 token maximum size ()
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 

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
..
adding-legal-pages.en-us.md Add Privacy Policy and Terms of Service Page ()
api-usage.en-us.md DOCS: add mention of swagger api reference ()
api-usage.zh-cn.md Adapt documentation to renamed ENABLE_SWAGGER option ()
ci-cd.en-us.md Add notice for awesome-gitea ()
cmd-embedded.en-us.md Add note about which version embedded tool is implemented ()
config-cheat-sheet.en-us.md Add option to increase provided OAuth2 token maximum size ()
config-cheat-sheet.zh-cn.md Replace references to cron.update_migration_post_id with cron.update_migration_poster_id in docs ()
customizing-gitea.en-us.md Add documentation to display STL preview ()
customizing-gitea.zh-cn.md Fix translation errors in doc advanced part (zh-cn) ()
external-renderers.en-us.md doc: Fix package name in external renderer example ()
hacking-on-gitea.en-us.md add 'make watch-frontend' and expand docs ()
hacking-on-gitea.zh-cn.md ZH-CN translation of Advanced part ()
logging-documentation.en-us.md Use Req.URL.RequestURI() to cope with FCGI urls ()
mail-templates-us.md Add review comments to mail notifications ()
make.en-us.md General documentation cleanup ()
make.fr-fr.md General documentation cleanup ()
make.zh-cn.md ZH-CN translation of Advanced part ()
migrations.en-us.md update ()
oauth2-provider.md Add oauth2 documentation ()
repo-indexer.en-us.md Add detected file language to code search ()
search-engines-indexation.en-us.md More extensive robots.txt docs ()
signing.en-us.md Re-order GPG signing docs and fix code blocks ()
specific-variables.en-us.md Copyedit docs ()
specific-variables.zh-cn.md ZH-CN translation of Advanced part ()
third-party-tools.en-us.md Add notice for awesome-gitea ()
third-party-tools.zh-cn.md Create third-party-tools.zh-cn.md ()