1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 10:14:27 +00:00
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>
2020-04-23 00:47:23 +02:00
..
2019-08-23 12:40:29 -04:00
2019-12-15 14:20:08 +00:00
2020-03-28 15:09:55 +02:00