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.
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>
4 years ago
..
admin Users should not be able to prohibit their own login (#10970) 4 years ago
api/v1 enable ENABLE_HARD_LINE_BREAK by default (#11162) 4 years ago
dev Display ui time with customize time location (#7792) 5 years ago
org Add Organization Wide Labels (#10814) 4 years ago
private Prevent clones and pushes to disabled wiki (#11131) 4 years ago
repo Add issue subscription check to API (#10967) 4 years ago
routes Add single release page and latest redirect (#11102) 4 years ago
user Add option to increase provided OAuth2 token maximum size (#11180) 4 years ago
utils Handle push rejection message in Merge & Web Editor (#10373) 4 years ago
home.go Add detected file language to code search (#10256) 4 years ago
init.go Language statistics bar for repositories (#8037) 4 years ago
install.go Add support for database schema in PostgreSQL (#8819) 5 years ago
metrics.go Use gitea forked macaron (#7933) 5 years ago
swagger_json.go Add gitea-vet (#10948) 4 years ago