forgejo/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
database.go Fix SQLite concurrency problems by using BEGIN IMMEDIATE (#10368) 2020-02-27 07:51:37 +08:00
database_sqlite.go
database_test.go
git.go Make PR message on pushes configurable (#10664) 2020-03-08 08:34:38 -05:00
indexer.go Add detected file language to code search (#10256) 2020-02-20 16:53:55 -03:00
indexer_test.go
log.go
mailer.go
markup.go
migrations.go
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
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