-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error message when registering with decidim #94
Comments
I can confirm that in Metadecidim you aren't registered with this email. It's weird. |
@Ouardaoubahri after further inspection I see that you're not signed up in Decidim Barcelona with that email. Maybe the bug is related to trying to register with an unconfirmed email account or something like that? |
As this seems like something related to Metadecidim itself and its DB I'm moving it to its repository. Feel free to ping me if you can replicate this in other installation and the steps necessary to replicate it @Ouardaoubahri |
This particular error happens when the OAuth sign in returns the same email address that is already reserved for another user account as described in the error message. So what has happened here I believe in this order:
This is a fundamental problem about how Decidim handles the OAuth logins. If the OAuth method hasn't been linked to the account, it will not be automatically linked to the account during the authorization phase if the account email matches the email returned from the external login (in this case from Decidim.Barcelona). It may have some security implications in case we automatically just trusted the email returned from the external authentication method and automatically mapped it to the account holding that email in Decidim. The security implication is that not all 3rd party services require the user to confirm their email addresses, so this could lead to hijacking the user accounts unless it is properly handled. So I'd say this is working as it's working "by design" (intentional or not). But I'd also say that providing the possibility to securely map the OAuth method to the existing account should also be provided during this flow, we have also bumped into the same problem in the past. |
Describe the bug
When I try to sign up on meta decidim via the decidim Oauth, I get an error message.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If there isn't another account with the same email address, I shouldn't have this error message
Screenshots
Extra data (please complete the following information):
The text was updated successfully, but these errors were encountered: