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.
gitea/models
wxiaoguang bffbbf5470
Improve oauth2 client "preferred username field" logic and the error handling (#30622)
Follow #30454
And fix #24957

When using "preferred_username", if no such field,
`extractUserNameFromOAuth2` (old `getUserName`) shouldn't return an
error. All other USERNAME options do not return such error.

And fine tune some logic and error messages, make code more stable and
more friendly to end users.
11 months ago
..
actions Interpolate runs-on with variables when scheduling tasks (#30640) 11 months ago
activities Reduce unnecessary database queries on actions table (#30509) 12 months ago
admin Next round of `db.DefaultContext` refactor (#27089) 2 years ago
asymkey Enable more `revive` linter rules (#30608) 11 months ago
auth Fix wrong table name (#30557) 11 months ago
avatars Replace 10 more gt- classes with tw- (#29945) 1 year ago
db Enable more `revive` linter rules (#30608) 11 months ago
dbfs make writing main test easier (#27270) 2 years ago
fixtures Add default board to new projects, remove uncategorized pseudo-board (#29874) 1 year ago
git chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 11 months ago
issues Enable more `revive` linter rules (#30608) 11 months ago
migrations Fix some bug on migrations (#30647) 11 months ago
organization Enable more `revive` linter rules (#30608) 11 months ago
packages Fix package list performance (#30520) 12 months ago
perm Clarify permission "HasAccess" behavior (#30585) 12 months ago
project Enable more `revive` linter rules (#30608) 11 months ago
pull Add support for sha256 repositories (#23894) 1 year ago
repo Enable more `revive` linter rules (#30608) 11 months ago
secret Make runs-on support variable expression (#29468) 1 year ago
shared/types Refactor locale&string&template related code (#29165) 1 year ago
system Refactor deletion (#28610) 1 year ago
unit Allow everyone to read or write a wiki by a repo unit setting (#30495) 12 months ago
unittest Improve oauth2 client "preferred username field" logic and the error handling (#30622) 11 months ago
user Improve oauth2 client "preferred username field" logic and the error handling (#30622) 11 months ago
webhook Store webhook event in database (#29145) 1 year ago
error.go Add merge style `fast-forward-only` (#28954) 1 year ago
fixture_generation.go Replace more db.DefaultContext (#27628) 1 year ago
fixture_test.go Replace more db.DefaultContext (#27628) 1 year ago
main_test.go make writing main test easier (#27270) 2 years ago
org.go Add user blocking (#29028) 1 year ago
org_team.go Clarify permission "HasAccess" behavior (#30585) 12 months ago
org_team_test.go Add user blocking (#29028) 1 year ago
org_test.go Add user blocking (#29028) 1 year ago
repo.go Refactor deletion (#28610) 1 year ago
repo_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
repo_transfer.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 11 months ago