I’ve successfully integrated Facebook, Github, and Twitter using Yii2 authclient. They are returning data as expected. When I try integrating Google and Linkedin, they both return an error saying the redirect_uri does not match one that is registered.
In the case of google, it appears to be looking for the following format :
http://www.mydomain.com/index.php?r=site/auth&authclient=google
However in the error message it adds encoding:
The redirect URI in the request: http://mydomain.com/index.php?r=site%2Fauth&authclient=google did not match a registered redirect URI
Not sure if that has anything to do with the problem.
Anyway, I tried that url and it doesn’t work, spits out the same message. I also tried the plain:
But no matter what I put in there, it returns the same error message.
In the case of linkedin, it says the redirect URI does match one that is registered, but provides no other hint.
With Facebook, I listed an app domain:
It works perfectly.
For Github and Twitter, I listed the callback url:
Works perfectly.
I’m assuming the redirect URI is the same thing? Anyway, if anyone has an idea what the redirect URI should be, please let me know, thanks.
Also, just a bit of info. Twitter does not currently return the email address of the user, but according to their blog, it will be released within days. Unfortunately, they made that claim about a month ago.
[color="#FFFFFF"][font="sans-serif"][size="2"]e API Key.[/size][/font][/color]