1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-02 03:46:01 -04:00
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.
2024-04-25 11:22:32 +00:00
..
upload
access_log.go
api_org.go
api_test.go
api.go Refactor cache and disable go-chi cache (#30417) 2024-04-13 08:38:44 +00:00
base_test.go Use strict protocol check when redirect (#29642) 2024-03-07 02:03:41 +00:00
base.go Use strict protocol check when redirect (#29642) 2024-03-07 02:03:41 +00:00
captcha.go Refactor cache and disable go-chi cache (#30417) 2024-04-13 08:38:44 +00:00
context_cookie.go
context_model.go
context_request.go
context_response.go Refactor URL detection (#29960) 2024-03-21 12:02:34 +00:00
context_template.go
context_test.go Refactor external URL detection (#29973) 2024-03-22 04:32:40 +08:00
context.go Improve oauth2 client "preferred username field" logic and the error handling (#30622) 2024-04-25 11:22:32 +00:00
csrf.go
org.go
package.go
pagination.go Remove AddParamIfExist(AddParam) (#29841) 2024-03-16 12:07:56 +00:00
permission.go
private.go
repo.go Enable more revive linter rules (#30608) 2024-04-22 11:48:42 +00:00
response.go
user.go
utils.go
xsrf_test.go
xsrf.go