Google and linkedin Login/Signin stoped working


#1

Hi Community,

Today I noticed that Google and Linked signin/login stoped working, despite there were no changes made to developer settings of either platforms nor discourse, apart from updating discourse docker few days ago to newest version.

This is the error:

The redirect URI in the request, http://www.myforum.com/auth/google_oauth2/callback, does not match the ones authorized for the OAuth client. Visit

J


(Rafael dos Santos Silva) #2

If Discourse is running on HTTPS the callback URLs in those services must explicitly use HTTPS too.


#3

@Falco Site is not using SSL atm


(Rafael dos Santos Silva) #4

Is your callback URLs like specified in the guide http://forum.example.com/auth/google_oauth2/callback ?


#5

Yes its same as this guide, except mine one is http rather than https, which used to work perfectly until now.


#6

I solved this issue. For some reason after updating my docker, it didnt worked with existing settings.

The fix was to add “www” to the “Authorized redirect URIs” into both Linkedin and google apps.

J.