georchestra / georchestra-gateway

GNU General Public License v3.0
0 stars 5 forks source link

Fixed OAuth2 account deletion #100

Closed emmdurin closed 6 months ago

emmdurin commented 7 months ago

When a OAuth2 user tries to delete its account from the console profile, this local account was immediately re-created when the user loads any page, even if he is redirected to the log out page.

I added a cache that can continue to serve last known user until he effectively logs out, and prevent it to be re-created until the user logs out. If he logs in again after, a new empty account will still be created, but it should not be a problem as a user which asks for account deletion should not try to log-in again, and if he does, most of its data have been deleted.