Open
Description
I have paid support for Prehensile Tales B.V.
I'd like the ability to disable automatic registration of Oauth2 logins. The usecase is as follows: All my users have Oauth2 authentication enable but I don't necessarily want all users to be able to access Wekan. My users all also exist in LDAP so I'd like to be able to tell Wekan to not authorize users that it doesn't know about.
Some setting like OAUTH2_AUTO_REGISTRATION
where the default would be 'true', which is the current behavior or 'false' which would not create users for Oauth2 logins if a user with a configurable key doesn't already exist.
OAUTH2_UNIQUE_KEY
which can be username or email, or any field in the user model I guess.