Is your feature request related to a problem? Please describe.
As Sysadmin my instance would most likely have both local authentication and remote/OAuth authentication setup.
I would prefer to request an email confirmation from my local authenticated users, but not for my remote/OAuth auth.
Therefore flask-security provides a config variable SECURITY_CONFIRMABLE upon which the register_user method will read the configs and decides on sending the user the confirmation email.
Describe the solution you'd like
Since we are already overriding register_user(invenio-accounts) in we can change the behavior of sending the confirmation link.
For example checking SECURITY_CONFIRMABLE for local authentication and then adding a new variable to check if we want to send the confirmation email for OAuth register users.
Is your feature request related to a problem? Please describe.
As Sysadmin my instance would most likely have both local authentication and remote/OAuth authentication setup.
I would prefer to request an email confirmation from my local authenticated users, but not for my remote/OAuth auth.
Therefore
flask-security
provides a config variableSECURITY_CONFIRMABLE
upon which the register_user method will read the configs and decides on sending the user the confirmation email.Describe the solution you'd like
Since we are already overriding register_user(invenio-accounts) in we can change the behavior of sending the confirmation link.
For example checking
SECURITY_CONFIRMABLE
for local authentication and then adding a new variable to check if we want to send the confirmation email for OAuth register users.