forgejo/routers
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>
2020-04-23 00:47:23 +02:00
..
admin Users should not be able to prohibit their own login (#10970) 2020-04-06 10:23:15 -04:00
api/v1 enable ENABLE_HARD_LINE_BREAK by default (#11162) 2020-04-21 23:13:56 +01:00
dev
org
private Prevent clones and pushes to disabled wiki (#11131) 2020-04-19 15:26:58 +01:00
repo Add issue subscription check to API (#10967) 2020-04-21 14:48:53 +01:00
routes Add single release page and latest redirect (#11102) 2020-04-18 11:47:15 -03:00
user Add option to increase provided OAuth2 token maximum size (#11180) 2020-04-23 00:47:23 +02:00
utils
home.go
init.go
install.go
metrics.go
swagger_json.go Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00