mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-02 08:57:32 -04:00
e74c4e1be9
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> |
||
---|---|---|
.. | ||
cache.go | ||
cors.go | ||
cron.go | ||
database_sqlite.go | ||
database_test.go | ||
database.go | ||
git.go | ||
indexer_test.go | ||
indexer.go | ||
log.go | ||
mailer.go | ||
markup.go | ||
migrations.go | ||
queue.go | ||
repository.go | ||
service.go | ||
session.go | ||
setting.go | ||
task.go | ||
webhook.go |