alixandru / q2a-open-login

Question2Answer Open Login plugin
62 stars 44 forks source link

Log in using an external login provider to connect your current profile with other accounts. #88

Open rohitagarwal88 opened 4 years ago

rohitagarwal88 commented 4 years ago

I am using the latest version dated 2019-03-18. When i try to connect my existing account with facebook / google it throws 500.

Q2A Version: 1.8.3 http://localhost:8888/logins?link=facebook

Screenshot 2019-09-21 at 10 32 35 PM

@alixandru / @bertrandgorge : Please guide me on how to resolve this issue

bertrandgorge commented 4 years ago

Hello, I rewrote a good bit of the code in order to update HybridAuth to version 3 (see current pull requests), and couldn't make this bit work without a lot of rewriting. The current code (before the pull request) would not work for sure, because of changes on the providers' side (ie. facebook, google) who won't allow query strings in callback urls anymore.

One more thing is that you won't be able to make it work if you work on "localhost". You should add an entry in your hosts file so that your browser thinks you are working on your production domain.

Good luck!

rohitagarwal88 commented 4 years ago

thanks @bertrandgorge . If you can suggest any hack to make this work for super-admin, coz the website will only support fb login. If I disable Q2A login, then I will be not able to login.

bertrandgorge commented 4 years ago

Well, if you only support facebook, you can ignore this error, because it is meant to merge accounts, in case you use both facebook and twitter for example. So it should not be used in the general case.

Now, I couldn't make facebook work with the current version of q2a-open-login, and had to make the few fixes I suggested in the pull requests. So you might need to wait for @alixandru to merge it (which is not always as easy as it sounds because you need to dive into the code and validate each change...)