1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-01 00:11:58 +02:00
gitea/services
zeripath 72738f0cb5
Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup (#16564)
This PR has two parts:

* Add locking to goth and gothic calls with a RWMutex

The goth and gothic calls are currently unlocked and thus are a cause of multiple potential races

* Reattempt OAuth2 registration on login if registration failed

If OAuth2 registration fails at startup we currently disable the login_source however an alternative approach could be to reattempt registration on login attempt.
    
Fix #16096

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-07-29 18:53:18 +01:00
..
agit Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
archiver
auth Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup (#16564) 2021-07-29 18:53:18 +01:00
comments
externalaccount
forms Add support for corporate WeChat webhooks (#15910) 2021-07-23 12:41:27 +08:00
gitdiff Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
issue
lfs Rename context.Query to context.Form (#16562) 2021-07-29 03:42:15 +02:00
mailer Use TrN helper for email templates (#16425) 2021-07-14 15:06:09 +02:00
mirror
pull Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
release
repository
webhook Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
wiki Add TestPrepareWikiFileName (#16487) 2021-07-20 15:16:20 +02:00