I have a website that used a normal Devise login with email and password.
Then I have completed this tutorial to add Omniauth / SSO:
https://github.com/heartcombo/devise/wiki/OmniAuth:-Overview
Now when some users choose to use "Sign in with Google" I want to disable the normal login with email and password for those users (for enhanced security).
How can I achieve that?
I'm facing in a similar situation and I'm not sure there's a clean way to do it.
I'm doing what
krsyoungis suggesting on this thread https://github.com/heartcombo/devise/issues/5502#issuecomment-1445633830Extra: since I have to disallow
unlock-ing accounts andresetting passwordsbut also have to obfuscate the validation messages by showing the default devise messages, I had to overwrite some more devise methods