Mailman/Django-allauth integration with Yahoo
Hello,
Has anybody managed to use the Django-Allauth Yahoo provider to authenticate towards Mailman3?
I have integrated mailman3/django-allauth/gmail — it works. I want in the same way to integrate mailman3 with yahoo mail.
As advised at https://docs.allauth.org/en/latest/socialaccount/providers/yahoo.html , in yahoo I register an application with redirect URL https://l.bapha.be/mm3/accounts/yahoo/login/callback/ , then I add credentials under mm3/admin/socialaccount/socialapp/: client ID and Private Key. I append in settings.py:INSTALLED_APPS = [… 'allauth.socialaccount.providers.yahoo' ].
After I do all of this, I eventually visit /mm3/accounts/login/?next=/mm3/postorius/lists/at.l.bapha.be/, click on Yahoo: “Sign In Via Yahoo . You are about to sign in using a third-party account from Yahoo.” → [Continue]. Now at https://login.yahoo.com I enter user name and password.
Then I get a site, partially in English, partially localized. It is in my domain at address /mm3/accounts/confirm-email/ , and states:
Messages: Confirmation of email address sent to ...@yahoo.com Menu: Entrance \r\n New registration
Confirm your email address:
We have sent an email to you for verification. Follow the link provided to finalize the signup process. If you do not see the verification email in your main inbox, check your spam folder. Please contact us if you do not receive the verification email within a few minutes.
I have indeed received an email, which states: New signin from … Hi, Your Yahoo account … was just used to sign in on …. If you did this, you’re all set. If not, please use this link to stop sharing, and create a new password. Have a great day! Thanks,Yahoo
So, the /account/confirm-email states I have received an email for verification, but the email sent says no verification is needed, I am all set up.
Any idea what can I improve?
In addition https://gitlab.com/mailman/mailman-suite/-/blob/master/mailman-suite_project... suggests adding in settings.py:
SOCIALACCOUNT_PROVIDERS = {'openid': {'SERVERS': [dict(id='yahoo', name='Yahoo', openid_url='http://me.yahoo.com')]}}
which I have not done. That is, I do not use the “openid” provider, but the “yahoo” provider. Do I have to use the OpenID provider when using Yahoo?
Greetings Дилян
On 8/4/24 03:35, Дилян Палаузов wrote:
Then I get a site, partially in English, partially localized. It is in my domain at address /mm3/accounts/confirm-email/ , and states:
Messages: Confirmation of email address sent to ...@yahoo.com Menu: Entrance \r\n New registration
Confirm your email address:
We have sent an email to you for verification. Follow the link provided to finalize the signup process. If you do not see the verification email in your main inbox, check your spam folder. Please contact us if you do not receive the verification email within a few minutes.
I'm not certain, but it looks like you are signing in to a new account and django-allauth is creating the account with the address from yahoo and is asking you to confirm.
I have indeed received an email, which states: New signin from … Hi, Your Yahoo account … was just used to sign in on …. If you did this, you’re all set. If not, please use this link to stop sharing, and create a new password. Have a great day! Thanks,Yahoo
So, the /account/confirm-email states I have received an email for verification, but the email sent says no verification is needed, I am all set up.
Any idea what can I improve?
This appears to be a glitch in the new account verification process. In any case, it's a django-allauth issue, not a Mailman issue.
Once you have gone through this dance, what happens the next time you sign in via Yahoo.
In addition https://gitlab.com/mailman/mailman-suite/-/blob/master/mailman-suite_project... suggests adding in settings.py:
SOCIALACCOUNT_PROVIDERS = {'openid': {'SERVERS': [dict(id='yahoo', name='Yahoo', openid_url='http://me.yahoo.com')]}}
which I have not done. That is, I do not use the “openid” provider, but the “yahoo” provider. Do I have to use the OpenID provider when using Yahoo?
I don't think it would matter.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hello Mark,
thanks for your answer.
So I had in the past registered that yahoo address withing mailman. Then I added oauth/openid to yahoo, then gave it a try. I have receieved as resut two email in the yahoo mailbox. One is sent by yahoo, notifying about account activity. The other, which I have not overseen as it was evaluated as spam, contains:
You are receiving this email because you or someone else tried to signup for an account using email address:
zzz@yahoo.com
However, an account using that email address already exists. In case you have forgotten about this, please use the password forgotten procedure to recover your account:
https://…/accounts/password/reset/
So the text "we have sent you an email for verification” but the email stating ”there is already such an account within mailman” is misleading, especially after the first message is shown to an yahoo-authenticated user.
Greetings // Дилян
-----Original Message----- From: Mark Sapiro <mark@msapiro.net> To: mailman-users@mailman3.org Subject: [MM3-users] Re: Mailman/Django-allauth integration with Yahoo Date: 06/08/24 03:01:24
On 8/4/24 03:35, Дилян Палаузов wrote:
Then I get a site, partially in English, partially localized. It is in my domain at address /mm3/accounts/confirm-email/ , and states:
Messages: Confirmation of email address sent to ...@yahoo.com Menu: Entrance \r\n New registration
Confirm your email address:
We have sent an email to you for verification. Follow the link provided to finalize the signup process. If you do not see the verification email in your main inbox, check your spam folder. Please contact us if you do not receive the verification email within a few minutes.
I'm not certain, but it looks like you are signing in to a new account and django-allauth is creating the account with the address from yahoo and is asking you to confirm.
I have indeed received an email, which states: New signin from … Hi, Your Yahoo account … was just used to sign in on …. If you did this, you’re all set. If not, please use this link to stop sharing, and create a new password. Have a great day! Thanks,Yahoo
So, the /account/confirm-email states I have received an email for verification, but the email sent says no verification is needed, I am all set up.
Any idea what can I improve?
This appears to be a glitch in the new account verification process. In any case, it's a django-allauth issue, not a Mailman issue.
Once you have gone through this dance, what happens the next time you sign in via Yahoo.
In addition https://gitlab.com/mailman/mailman-suite/-/blob/master/mailman-suite_project... suggests adding in settings.py:
SOCIALACCOUNT_PROVIDERS = {'openid': {'SERVERS': [dict(id='yahoo', name='Yahoo', openid_url='http://me.yahoo.com')]}}
which I have not done. That is, I do not use the “openid” provider, but the “yahoo” provider. Do I have to use the OpenID provider when using Yahoo?
I don't think it would matter.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to dpa-mailman@aegee.org
On 8/8/24 11:30, Дилян Палаузов wrote:
So the text "we have sent you an email for verification” but the email stating ”there is already such an account within mailman” is misleading, especially after the first message is shown to an yahoo-authenticated user.
I'm not sure if it's relevant, but we have issues with the latest
django-allauth 64.0. django-mailman3 now pins the requirement at
>=0.63,<0.64
(it should be <64.0
but <0.64
has the same effect).
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Дилян Палаузов