gitea/modules/setting
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
..
cache.go Cache last commit to accelerate the repository directory page visit (#10069) 2020-02-01 19:11:32 +00:00
cors.go Movde dependents on macaron from modules/setting (#10050) 2020-01-29 09:47:46 +02:00
cron.go Update migrated repositories' issues/comments/prs poster id if user has a github external user saved (#7751) 2019-10-14 09:10:42 +03:00
database_sqlite.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
database_test.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
database.go Fix SQLite concurrency problems by using BEGIN IMMEDIATE (#10368) 2020-02-27 07:51:37 +08:00
git.go Make PR message on pushes configurable (#10664) 2020-03-08 08:34:38 -05:00
indexer_test.go Restrict repository indexing by glob match (#7767) 2019-09-11 20:26:28 +03:00
indexer.go Add detected file language to code search (#10256) 2020-02-20 16:53:55 -03:00
log.go Use Req.URL.RequestURI() to cope with FCGI urls (#9473) 2019-12-24 00:11:12 +00:00
mailer.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
markup.go Markdown: Sanitizier Configuration (#9075) 2019-12-07 14:49:04 -05:00
migrations.go Add retry for migration http/https requests (#9019) 2019-11-16 16:30:06 +08:00
queue.go Add Unique Queue infrastructure and move TestPullRequests to this (#9856) 2020-02-02 23:19:58 +00:00
repository.go Make archive prefixing configurable with a global setting (#9943) 2020-01-22 23:46:46 +00:00
service.go Add /milestones endpoint (#8733) 2019-12-15 14:20:08 +00:00
session.go Movde dependents on macaron from modules/setting (#10050) 2020-01-29 09:47:46 +02:00
setting.go Add option to increase provided OAuth2 token maximum size (#11180) 2020-04-23 00:47:23 +02:00
task.go Graceful Queues: Issue Indexing and Tasks (#9363) 2020-01-07 12:23:09 +01:00
webhook.go Add Matrix webhook (#10831) 2020-03-28 15:09:55 +02:00