forgejo-federation/routers/user
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
..
setting Reject duplicate AccessToken names (#10994) 2020-04-13 22:02:48 +03:00
auth.go Add option to increase provided OAuth2 token maximum size (#11180) 2020-04-23 00:47:23 +02:00
auth_openid.go Various fixes in login sources (#10428) 2020-02-23 13:52:05 -06:00
avatar.go make avatar lookup occur at image request (#10540) 2020-03-27 14:34:39 +02:00
home.go remove package code.gitea.io/gitea/modules/git import out of models (#11025) 2020-04-10 14:26:37 +03:00
home_test.go Fix milestones too many SQL variables bug (#10880) 2020-03-31 10:47:00 +03:00
main_test.go Unit tests for wiki routers (#3022) 2017-11-30 17:52:15 +02:00
notification.go Protect against NPEs in notifications list (#10879) 2020-03-29 20:51:14 +01:00
oauth.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
profile.go Language statistics bar for repositories (#8037) 2020-02-11 11:34:17 +02:00