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/services/context
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.
10 months ago
..
upload Move context from modules to services (#29440) 12 months ago
access_log.go Move context from modules to services (#29440) 12 months ago
api.go Refactor cache and disable go-chi cache (#30417) 10 months ago
api_org.go Move context from modules to services (#29440) 12 months ago
api_test.go Move context from modules to services (#29440) 12 months ago
base.go Use strict protocol check when redirect (#29642) 11 months ago
base_test.go Use strict protocol check when redirect (#29642) 11 months ago
captcha.go Refactor cache and disable go-chi cache (#30417) 10 months ago
context.go Improve oauth2 client "preferred username field" logic and the error handling (#30622) 10 months ago
context_cookie.go Move context from modules to services (#29440) 12 months ago
context_model.go Move context from modules to services (#29440) 12 months ago
context_request.go Move context from modules to services (#29440) 12 months ago
context_response.go Refactor URL detection (#29960) 11 months ago
context_template.go Move context from modules to services (#29440) 12 months ago
context_test.go Refactor external URL detection (#29973) 11 months ago
csrf.go Move context from modules to services (#29440) 12 months ago
org.go Move context from modules to services (#29440) 12 months ago
package.go Move context from modules to services (#29440) 12 months ago
pagination.go Remove AddParamIfExist(AddParam) (#29841) 11 months ago
permission.go Move context from modules to services (#29440) 12 months ago
private.go Move context from modules to services (#29440) 12 months ago
repo.go Enable more `revive` linter rules (#30608) 10 months ago
response.go Move context from modules to services (#29440) 12 months ago
user.go Move context from modules to services (#29440) 12 months ago
utils.go Move context from modules to services (#29440) 12 months ago
xsrf.go Move context from modules to services (#29440) 12 months ago
xsrf_test.go Move context from modules to services (#29440) 12 months ago