mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-18 03:58:52 +00:00
c88e5dbe292a3d1193c3b58dd571d2ca5d378cae
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 <[email protected]> Co-authored-by: techknowlogick <[email protected]>
Languages
TypeScript
42.4%
MDX
30.9%
Astro
8.1%
JavaScript
6.4%
Shell
6%
Other
6.2%