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

Invalid CSRF Token. Unable to validate CSRF Token. #85

Closed
chiragsatapara opened this issue Oct 9, 2017 · 2 comments
Closed

Invalid CSRF Token. Unable to validate CSRF Token. #85

chiragsatapara opened this issue Oct 9, 2017 · 2 comments

Comments

@chiragsatapara
Copy link

chiragsatapara commented Oct 9, 2017

Invalid CSRF Token. Unable to validate CSRF Token.
File: D:\xampp\htdocs\arcade\api\libs\drop\vendor\kunalvarma05\dropbox-php-sdk\src\Dropbox\Authentication\DropboxAuthHelper.php

I checkout the DropboxAuthHelper.php file and found out that $tokenInStore = $this->getPersistentDataStore()->get('state'); this line return a null value. Any change or something you want to suggest for this.

I am following this document : https://github.com/kunalvarma05/dropbox-php-sdk/wiki/Authentication-and-Authorization

@chiragsatapara chiragsatapara changed the title Where is autoloader file ? Fatal error: Class 'Kunnu\Dropbox\Http\Clients\DropboxHttpClientFactory' not found in D:\xampp\htdocs\arcade\api\libs\dropbox\Dropbox.php on line 117 Oct 9, 2017
@chiragsatapara chiragsatapara changed the title Fatal error: Class 'Kunnu\Dropbox\Http\Clients\DropboxHttpClientFactory' not found in D:\xampp\htdocs\arcade\api\libs\dropbox\Dropbox.php on line 117 Invalid CSRF Token. Unable to validate CSRF Token. File: D:\xampp\htdocs\arcade\api\libs\drop\vendor\kunalvarma05\dropbox-php-sdk\src\Dropbox\Authentication\DropboxAuthHelper.php Oct 9, 2017
@chiragsatapara chiragsatapara changed the title Invalid CSRF Token. Unable to validate CSRF Token. File: D:\xampp\htdocs\arcade\api\libs\drop\vendor\kunalvarma05\dropbox-php-sdk\src\Dropbox\Authentication\DropboxAuthHelper.php Invalid CSRF Token. Unable to validate CSRF Token. Oct 9, 2017
@kunalvarma05
Copy link
Owner

kunalvarma05 commented Oct 10, 2017

Has the session been started? Make sure you've the session_start(); on top of the script.

See this Example on the same page.

Could you share more information?

@jkbennemann
Copy link

Got the same error.
session_start() exists on top of the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants