gitea/modules/auth
zeripath 903bdefb58
Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup ()
Backport 

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 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-07-29 18:52:38 +01:00
..
ldap Encrypt LDAP bind password in db with SECRET_KEY () 2021-05-20 09:29:57 +01:00
oauth2 Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup () 2021-07-29 18:52:38 +01:00
openid Use gitea forked macaron () 2019-08-23 12:40:29 -04:00
pam Fixed assert statements. () 2021-06-07 07:27:09 +02:00