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.
zeripath e74c4e1be9
Add option to increase provided OAuth2 token maximum size (#11180)
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>
4 years ago
..
advanced Add option to increase provided OAuth2 token maximum size (#11180) 4 years ago
features doc(authentication.en-us): remove superflous line (#10758) 4 years ago
help Add FAQ for markdown (#10611) 4 years ago
installation [Docs] Cross Build Gitea from Source (#10999) 4 years ago
upgrade Remove migration support from versions earlier than 1.6.0 (#10026) 4 years ago
usage Add charset handling to backup/restore doc (#11062) 4 years ago
advanced.en-us.md Import docs into main repository (#2874) 7 years ago
advanced.fr-fr.md General documentation cleanup (#3317) 7 years ago
advanced.zh-cn.md Import docs into main repository (#2874) 7 years ago
features.en-us.md Import docs into main repository (#2874) 7 years ago
features.zh-cn.md Import docs into main repository (#2874) 7 years ago
features.zh-tw.md Import docs into main repository (#2874) 7 years ago
help.en-us.md Implement documentation search (#8937) 5 years ago
help.fr-fr.md Implement documentation search (#8937) 5 years ago
help.zh-cn.md Implement documentation search (#8937) 5 years ago
help.zh-tw.md Implement documentation search (#8937) 5 years ago
installation.en-us.md Import docs into main repository (#2874) 7 years ago
installation.fr-fr.md General documentation cleanup (#3317) 7 years ago
installation.zh-cn.md Import docs into main repository (#2874) 7 years ago
installation.zh-tw.md Import docs into main repository (#2874) 7 years ago
upgrade.en-us.md Import docs into main repository (#2874) 7 years ago
upgrade.fr-fr.md General documentation cleanup (#3317) 7 years ago
upgrade.zh-cn.md Import docs into main repository (#2874) 7 years ago
upgrade.zh-tw.md Import docs into main repository (#2874) 7 years ago
usage.en-us.md Import docs into main repository (#2874) 7 years ago
usage.zh-cn.md ZH-CN translation of Usage part (#5086) 6 years ago