0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-05 13:49:10 +01:00
gitea/routers
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
..
api Fix compare api swagger (#30648) 2024-04-23 02:22:43 +00:00
common feat(api): implement branch/commit comparison API (#30349) 2024-04-16 11:45:04 +08:00
install Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
private Enable more revive linter rules (#30608) 2024-04-22 11:48:42 +00:00
utils Refactor external URL detection (#29973) 2024-03-22 04:32:40 +08:00
web Improve oauth2 client "preferred username field" logic and the error handling (#30622) 2024-04-25 11:22:32 +00:00
init.go Move some asymkey functions to service layer (#28894) 2024-03-04 08:57:39 +00:00