If logged in using email and password, user can't log in with OAuth2 provider #267
Replies: 1 comment 1 reply
-
Yes, that's a wanted behavior. We did this for security purposes. There are scenarios where a malicious user could take control of an account if we automatically link the OAuth account based on email address. For example, let's say our Fief workspace allows user to authenticate with password and an OAuth2 Provider (let's call it
To make this work, we would need to make sure the OAuth provider has validated the email address. This could be done for trustable services like Google or Facebook, but dangerous in the general case. As I mentioned in #266, we do not have (yet) specific paths depending on the provider. |
Beta Was this translation helpful? Give feedback.
-
Hi,
If a user account already exists, and the account is created with email and password,
user will get an error "account with the same email already exists", when tries to identify itself using OAuth2 provider associated with the same email address.
Maybe the better behavior will be to just let the user log in, regardless if he uses oauth2 provider or email/password combination to identify himself. In both cases, we have enough proof that he owns the email address.
All best
Beta Was this translation helpful? Give feedback.
All reactions