Saleor: Facebook and Gmail login feature

Created on 11 Apr 2018  路  24Comments  路  Source: mirumee/saleor

Any plan to integrate facebook and gmail based login to simplify the login experience

documentation help wanted

Most helpful comment

I think we should mention that in the docs

All 24 comments

This feature is already available. To enable it, go to "Dashboard" > "Site settings" > "Authorization keys". From there you can set up OAuth keys for Google or Facebook.

I think we should mention that in the docs

True, it's missing. It was added a long time ago in the dark times when we didn't develop the documentation along with the features.

Interesting! I always thought this section was API authorization keys, for saleor GraphQL access. :wink:
I will take a look and document that if I get all working and if everything is covered in tests. I was wondering about putting Google's reCaptcha as well, as a feature. It could be a nice place to put it.

I will keep you updated.


Edit: I will keep Saleor's team handle this. But maybe I will submit a documentation draft if it can help save some time for future edits. But for now, all I manage to get from Saleor Facebook login, is bad requests and 500 errors. And Facebook doesn't seem to really want us to use their 'in development' mode without enforcing HTTPS. Seems quite messy for now.
For Google, development mode is usable. And we still get a 500 client side (400 sever side).

Eventually I'd like to refactor this to "Settings > Integrations" as the list is growing longer.

Can anyone please tell me which password do I need to enter in the screen?
Thanks

screen shot 2018-10-07 at 9 09 15 pm

You will need the oauth2 web application credentials, that you can generate in the Google API Console.

"Key" is ClientID and "Password" is the secret key.

I didn't check it for google now. I am trying to integrate facebook by creating a new app on https://developers.facebook.com but there is no option of a password. All I have is App ID and App Secret key. So, I need to know from where I can get the password?

Thank you @Pacu2

Hey @Rabia23, did you resolve your problem? If I'm correct you should set the App ID in the "Key" input and App secret in the "Password" field. Let me know if that worked for you.

@maarcingebala when I add the facebook OAuth credentials then it redirects me to the following screen.
screen shot 2018-10-08 at 12 54 52 pm

Seems like we don't have a write access on the admin dashboard in demo site. What should I do now?

@Rabia23 We do not allow random people to change the configuration of demo.getsaleor.com. You will need to run your own (local) store to play with configuration.

Thankyou @patrys. I'll setup it locally.

@maarcingebala This issue regards adding docs for this feature, I think we should keep it open

This is mentioned in the new User Guide for Dashboard 2.0.

Just one question: the social login feature is mentioned in the Dashboard 2.0 docs, but there is no login button in the dashboard after adding a social network provider .. the old dashboard has this option - is this going to be added some time?

Thank you @Pacu2

Hi ,could you tell me if facebook still support local test for "facebook login"?
Thanks for your help

could we re-open this issue? It's really confusing to have settings in the dashboard, that has no effect. Either remove them or add the feature.

@JannikZed Which settings? You mean authorization keys in dashboard configuration?

yes exactly. - Or does this setting has any effect right now?

Not really, it was used in Saleor 1.x (django-based storefront). With current approach, we would rather try to implement this feature as a plugin. I'll discuss with the team what's the best approach, we'll probably remove authorization keys from API and dashboard and open issues with specs how Facebook/Google auth could be implemented.

Hi @maarcingebala :) May I ask if the team could bring Facebook auth to the platform yet? Otherwise, I wonder if it is possible that we can use react-facebook-login.

@PirunSeng We're working on adding OpenID support in Saleor so you'll be able to use providers as Auth0 to enable FB or Google authentication. It is expected to be released in Saleor 3.0. Related backend pull request that will add it: https://github.com/mirumee/saleor/pull/6182

Thanks a lot @maarcingebala :) for your prompt response and the team to bring it to the platform and for the community. Looks like it's gonna be released soon. Can't wait for it.

Was this page helpful?
0 / 5 - 0 ratings