-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with Client->obtainAccessToken #112
Comments
the same issue here |
Do you solve the problem? |
Check whether your $_SESSION actually contains the state of the client; in the example, the code involving $_SESSION is what sets the approporiate redirect URI that is asked for here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
i'm trying to run the code in the example but i've get a fatal error in redirect.php
PHP Fatal error: Uncaught Exception: The state's redirect URI must be set to call obtainAccessToken() in /xxxx/xxxx/xxxx/xxxx/vendor/krizalys/onedrive-php-sdk/src/Client.php:293 Stack trace: #0 /xxxx/xxxx/xxxx/xxxx/redirect.php(38): Krizalys\Onedrive\Client->obtainAccessToken('ULb8Q~YsGkHITQt...', 'M.C105_BL2.2.d0...') #1 {main} thrown in /xxxx/xxxx/xxxx/xxxx/vendor/krizalys/onedrive-php-sdk/src/Client.php on line 293
i don't understand what i'm doing wrong, can anyone help me ?
thanks
The text was updated successfully, but these errors were encountered: