Closed antrecu closed 8 years ago
Make sure you have set the right "redirect_uri" setting in config.php
. If the URL you run the client looks like this:
https://example.org/client/google/
Then you should set the "redirect_uri" as:
https://example.org/client/google/?redirect
Of course, the same redirect URI should be set at the Google Dev Console.
And for "production use" it is not the best apporach, but for a simple example it should be enough :).
when running the code from the Google or Github folders, (index.php, config.php for each) the authentication seems to take place but once the redirection happens the $_GET['redirect'] variable doens't seem to be set wich makes the sample always show the login link instead of the user attrs. for both samples i used the same redirect url on config.php code and in google client configuration interface as well as in the github, so not sure why o cannot see the user info loaded or any other error message/exception Please advice.
Thanks