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.
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>
4 years ago
..
ldap Add restricted user filter to LDAP authentication (#10600) 4 years ago
oauth2 Add option to increase provided OAuth2 token maximum size (#11180) 4 years ago
openid Use gitea forked macaron (#7933) 5 years ago
pam Various fixes in login sources (#10428) 4 years ago
sso Remove check on username if AccessToken authentication (#11015) 4 years ago
admin.go Change admin dashboard to POST (#10465) 4 years ago
auth.go Add single sign-on support via SSPI on Windows (#8463) 5 years ago
auth_form.go Add restricted user filter to LDAP authentication (#10600) 4 years ago
org.go Team permission to create repository in organization (#8312) 5 years ago
repo_branch_form.go Use gitea forked macaron (#7933) 5 years ago
repo_form.go Prevent merge of outdated PRs on protected branches (#11012) 4 years ago
repo_form_test.go Use gitea forked macaron (#7933) 5 years ago
user_form.go Add support for database schema in PostgreSQL (#8819) 5 years ago
user_form_auth_openid.go Use gitea forked macaron (#7933) 5 years ago
user_form_test.go Block registration based on email domain (#5157) 6 years ago