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/modules/auth
zeripath 903bdefb58
Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup (#16570)
Backport #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>
4 years ago
..
ldap Encrypt LDAP bind password in db with SECRET_KEY (#15547) 4 years ago
oauth2 Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup (#16570) 4 years ago
openid Use gitea forked macaron (#7933) 6 years ago
pam Fixed assert statements. (#16089) 4 years ago