These are chat archives for mirumee/saleor

27th
Sep 2018
saleor217
@saleor217
Sep 27 2018 04:35
is anyone know how to implement social login like google sign in saleor?
particularly i had problem with redirct_url mismatch.
Filip Kucharczyk
@Pacu2
Sep 27 2018 06:33
As far as I remember, redirect_url has to be registred in the Google API console
saleor217
@saleor217
Sep 27 2018 06:34
yes i registred it there but i got " The redirect URI in the request, http://127.0.0.1:8000/en, does not match the ones authorized for the OAuth client. "
above quoted error i recieved
my concern is there any other configuration we have to do in our saleor project execept one that we do in site settings>authorization keys in dashboard.
Filip Kucharczyk
@Pacu2
Sep 27 2018 06:57
None that I'm aware of, but was using that few months back, it looks like it's related to the misconfiguration of the Google API redirect_url
saleor217
@saleor217
Sep 27 2018 07:58
so as i am running my project on localhost , so as basically i have to redirect page to home page (127.0.0.1:8000/en) so which redirect_url configure at google api redirect_url have an any idea about it.
Filip Kucharczyk
@Pacu2
Sep 27 2018 08:00
Sorry I just don't know think you need to figure it out on your own
saleor217
@saleor217
Sep 27 2018 08:01
ok thank for you help.
Filip Kucharczyk
@Pacu2
Sep 27 2018 08:12
I checked the configuration I was using while fixing this feature few months back, could you please try one of the followings: http://localhost:8000/complete/google-oauth2/ , http://localhost:8000/en/complete/google-oauth2, http://localhost:8000/
saleor217
@saleor217
Sep 27 2018 08:13
ok
Filip Kucharczyk
@Pacu2
Sep 27 2018 08:18
Let me know if one of them worked so we can add a brief documentation for this feature
saleor217
@saleor217
Sep 27 2018 08:18
yes, off-course i will
saleor217
@saleor217
Sep 27 2018 08:24
hence i checked all above redirect url but none them working

I checked the configuration I was using while fixing this feature few months back, could you please try one of the followings: http://localhost:8000/complete/google-oauth2/ , http://localhost:8000/en/complete/google-oauth2, http://localhost:8000/

that time it is working ?

Filip Kucharczyk
@Pacu2
Sep 27 2018 08:25
Can we narrow it down to which one?
saleor217
@saleor217
Sep 27 2018 08:27
none of the above urls are in working condition.
have you have any proper implementation steps for it to working?
Filip Kucharczyk
@Pacu2
Sep 27 2018 08:30
No, I was just fixing it some time ago so that's where the redirect_urls are from. Will try to check it in few hours
Filip Kucharczyk
@Pacu2
Sep 27 2018 12:02
I think you might be doing something wrong, creating a web application creditorials, adding the social auth key in the dashboard, and whitelisting http://127.0.0.1:8000/complete/google-oauth2/ did the job for me
Might sound simple, but have you clicked save after adding the authorised redirect URLs?
saleor217
@saleor217
Sep 27 2018 12:06
yes
what you say about whitelisting url ? i didn't get it that point
Filip Kucharczyk
@Pacu2
Sep 27 2018 12:08
I meant adding it as authorised redirect URIs
saleor217
@saleor217
Sep 27 2018 12:09
in our saleror dashboard or i have to do in google credential page?
Filip Kucharczyk
@Pacu2
Sep 27 2018 12:10
In google's credential page
saleor217
@saleor217
Sep 27 2018 12:14
yes, now i got it google sign in page.
thanks Filip
Filip Kucharczyk
@Pacu2
Sep 27 2018 14:41
You're welcome! Will try to write some simple docs for this soon