Closed roenschg closed 5 years ago
Have same problem on 7.2 / Ubuntu 18.04
As mentioned in that issue, if you download credentials for an "Installed application" client ID, the redirect URI will be set automatically. This error should only happen if you use web application credentials. Can you confirm that you downloaded the correct credential type?
Makes sense. Yeap, I used web app, so this one's invalid. Thanks for your reply and clarification. I used my already existing project, and didn't knew about this issue.
пт, 21 дек. 2018 г., 21:14 Eric Koleda notifications@github.com:
As mentioned in that issue, if you download credentials for an "Installed application" client ID, the redirect URI will be set automatically. This error should only happen if you use web application credentials. Can you confirm that you downloaded the correct credential type?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gsuitedevs/php-samples/issues/32#issuecomment-449460270, or mute the thread https://github.com/notifications/unsubscribe-auth/AF67YzbLySxqLqZtO4gthcAem-jWLZwwks5u7SUWgaJpZM4ZVZOE .
I have to reopen that issue which is related to #22
The issue was closed but it was still an error! There is missing one line in the example file:
$client->setRedirectUri(...);
Please change the documentation accordingly.
Expected Behavior
I can access the API
Actual Behavior
I see an error because the redirect uri for OAuth is not defined. `In OAuth2.php line 650:
missing the required redirect URI`
Steps to Reproduce the Problem
Specifications