1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-20 14:14:34 +01:00
gitea/modules/auth
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
..
ldap
oauth2 Add option to increase provided OAuth2 token maximum size (#11180) 2020-04-23 00:47:23 +02:00
openid
pam
sso Remove check on username if AccessToken authentication (#11015) 2020-04-14 13:32:03 -05:00
admin.go
auth_form.go
auth.go
org.go
repo_branch_form.go
repo_form_test.go
repo_form.go Prevent merge of outdated PRs on protected branches (#11012) 2020-04-16 22:00:36 -03:00
user_form_auth_openid.go
user_form_test.go
user_form.go