Skip to content
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

Open
Labyala opened this issue Apr 24, 2023 · 3 comments
Open

Error with Client->obtainAccessToken #112

Labyala opened this issue Apr 24, 2023 · 3 comments

Comments

@Labyala
Copy link

Labyala commented Apr 24, 2023

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

@Sisytec
Copy link

Sisytec commented Jul 14, 2023

the same issue here
thanks!

@smartcmsteam
Copy link

Do you solve the problem?

@GenieTim
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants