Using social auth exclusively #818
-
Is there any way to make flask-security only allow login via social auth. Registration would be done similar to what is mentioned in this issue: https://github.com/Flask-Middleware/flask-security/issues/751 How could this be implemented? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This should be doable since FS already (using unified signin feature) doesn't require a stored password. If you are using two-factor - then you have to register the FS blueprint - (which has /login) but no one will be able to log in with that since they don't have a password - so you can simply have your own /mylogin endpoint that redirects to the OAUTH_START_URL. |
Beta Was this translation helpful? Give feedback.
This should be doable since FS already (using unified signin feature) doesn't require a stored password.
I would ask first however - what feature(s) of FS do you actually want to use? if you only authenticate with social auth, and register with social auth - seems like the only feature left is two-factor.. is that what you are using FS for?
If you are using two-factor - then you have to register the FS blueprint - (which has /login) but no one will be able to log in with that since they don't have a password - so you can simply have your own /mylogin endpoint that redirects to the OAUTH_START_URL.