mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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> |
5 years ago | |
---|---|---|
.. | ||
ldap | 5 years ago | |
oauth2 | 5 years ago | |
openid | 6 years ago | |
pam | 5 years ago | |
sso | 5 years ago | |
admin.go | 5 years ago | |
auth.go | 5 years ago | |
auth_form.go | 5 years ago | |
org.go | 5 years ago | |
repo_branch_form.go | 6 years ago | |
repo_form.go | 5 years ago | |
repo_form_test.go | 6 years ago | |
user_form.go | 5 years ago | |
user_form_auth_openid.go | 6 years ago | |
user_form_test.go | 6 years ago |