You have no items in your shopping cart.

Thursday, April 25, 2024 7:04:39 AM

Cannot login with Facebook

Posted: 3 years ago

#11233 Quote

edazc

Posted: 3 years ago

#11233 Quote
Hi. Please help. I am trying to configure Facebook authentication but I get this error when the user introduces the password and hits LOGIN button.
A remote failure has occurred:
Correlation failed.
Properties:
-.redirect=/SocialExternalAuth/LoginCallback?provider=facebook&returnUrl=%2F
-SocialErrorCallback=/login?returnUrl=%2F.

In the facebook app configuraton I have two allowed redirect URIs:
https://[MYSITE]/login-facebook
https://[MYSITE]/login-facebook/SocialExternalAuth/LoginCallback

Posted: 3 years ago

#11234 Quote

edazc

Posted: 3 years ago

#11234 Quote
I use Nop version 4.3

Posted: 3 years ago

#11235 Quote

Support

Posted: 3 years ago

#11235 Quote
Remove all callback  URLs and open plugin configure page, copy callback URL from plugin configure page.
And check your store URL in the nop admin store list and in the browser.
If you use https you need to change the store url from http to https

Posted: 3 years ago

#11236 Quote

edazc

Posted: 3 years ago

#11236 Quote
I did what you suggested but I did not succeed.
I used "https://[MYSITE]/login-facebook" as redirect uri because the plugin configure page shows that uri. Also in the facebook app configuration page they let me check that this uri is valid.
I am using https because I have a working SSL certificate on my site and the browser shows my store as a secure site. But in my store configuration the SSL option is unchecked because it causes a ERR_TOO_MANY_REDIRECTS error when I activate it, so I keep it unchecked and my store works well as a secure site.

Do you think that having SSL unchecked is causing the problem with the plugin? what is exactly a correlation error?

Posted: 3 years ago

#11237 Quote

Support

Posted: 3 years ago

#11237 Quote
>ERR_TOO_MANY_REDIRECTS
You need to use https now.
Check if you use the store URL with www or without www, maybe you redirect the customer from https to https:\\www and back to https

Posted: 3 years ago

#11238 Quote

edazc

Posted: 3 years ago

#11238 Quote
Well, I have a redirect rule in DNS configuration (CNAME record) that sends every request made to [MYDOMAIN] to https://www.[MYDOMAIN] since the second points to the actual server in AWS. In normal conditions I have not been able to activate SSL in the store without getting the redirect error.

In order to make a test and avoid redirect I commented this line temporarily in HttpsRequirementAttribute.cs
//RedirectRequest(filterContext, _storeContext.CurrentStore.SslEnabled);
After this I was able to check SSL for the store, but I am still getting errors with the plugin.

Now after I enter my credentials and hit the LOGIN button a Facebook page shows this message:
------
Facebook found that Mercadone does not use a secure connection to transfer information.
Until Mercadone has updated its security settings, you will not be able to use Facebook to log in.
--------

My site is https://www.mercadone.co.

Also I tried again with Google oauth but then I get the "Correlation failed." error message.

Posted: 3 years ago

#11239 Quote

Support

Posted: 3 years ago

#11239 Quote
I tried to login and I didn't see any error message.
But I was redirected to this page
https://www.mercadone.co/storeclosed

Posted: 3 years ago

#11240 Quote

edazc

Posted: 3 years ago

#11240 Quote
The store was closed. Please check again, is open now. Thanks!

Posted: 3 years ago

#11241 Quote

Support

Posted: 3 years ago

#11241 Quote
I could login using Google without any issues.

Posted: 3 years ago

#11242 Quote

edazc

Posted: 3 years ago

#11242 Quote
Well, after you successful login I have made some tests and I have noticed that Google login is working from mobile phones only, but not from desktop browsers. Could you please help me with a test from a desktop device?

Posted: 3 years ago

#11243 Quote

Support

Posted: 3 years ago

#11243 Quote
I tested on the decide (Windows 10)  + Firefox, not on mobile

Posted: 3 years ago

#11244 Quote

edazc

Posted: 3 years ago

#11244 Quote
Yes, I could login with Google using Firefox in Windows 10 too. In fact I could enter with IE and with Ms Edge. The problem is with Google Chrome. Is there any problem with this browser in desktop devices? I have Chrome Version 84.0.4147.105
Thanks

Posted: 3 years ago

#11245 Quote

Support

Posted: 3 years ago

#11246 Quote

edazc

Posted: 3 years ago

#11246 Quote
I'm not clear about this solution because NopCommerce 4.3 is already using Net Core 3.1, which is supposed to include support for SameSite property. Could you please provide a link to the correct ASP NET Core patch? Thanks.

Posted: 3 years ago

#11247 Quote

Support

Posted: 3 years ago

#11247 Quote
Upgrade  ASP.NET Core with the last fixes.

Posted: 3 years ago

#11248 Quote

edazc

Posted: 3 years ago

#11248 Quote
That didnt work.
I upgraded ASP NET CORE libs to 3.1.6 downloaded from here
https://dotnet.microsoft.com/download/dotnet-core/thank-you/sdk-3.1.302-windows-x64-installer
Then I compiled and web published the solution to my machine in AWS in selfcontained mode. Same result, correlation error when loging in with Google.

Posted: 3 years ago

#11250 Quote

Support

Posted: 3 years ago

#11250 Quote
Plugin supports Google Auth2.0 and Google SignIn
Can you try to use Google SignIn ?

Posted: 3 years ago

#11257 Quote

edazc

Posted: 3 years ago

#11257 Quote
Google SignIn did work. Thanks a lot.

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved