mirror of
1
Fork 0
forgejo/services/auth
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
..
source Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup (#16564) 2021-07-29 18:53:18 +01:00
auth.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
auth_test.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 2021-06-09 19:53:16 +02:00
basic.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
group.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
interface.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
oauth2.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
placeholder.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 2021-06-09 19:53:16 +02:00
reverseproxy.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
session.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
signin.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
sspi_windows.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
sync.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00