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

Box connector issues (some) #3073

Closed
osworx opened this issue Dec 27, 2019 · 2 comments
Closed

Box connector issues (some) #3073

osworx opened this issue Dec 27, 2019 · 2 comments
Labels

Comments

@osworx
Copy link
Contributor

osworx commented Dec 27, 2019

Created new test project with composer only.
Added elFinder, Google API 2, Dropbox and ziparchive - all via composer.
Therefore elFinder is currently latest nightly version 2.51

box is defined as:
2x define(..)
and

$roots[] = [
	'driver'		=> 'Dropbox2',
	'consumerKey'		=> 'KEY',
	'consumerSecret'	=> 'SECRET',
	'path'			=> '/'
];

Connecting to box works perfectly (new window), granting access also, but coming return the original window is the same .. and nothing is added (but code which will be used as access_token later is defined and coming back from box) - the first popup window is displayed again

grafik

At initialization an error is shown (debug enabled):

mountErrors

Driver "elFinderVolumeBox" : Required option `accessToken` is undefined.

Compared to the Dropbox connector, defining (inside the $roots array)
'accessToken' => 'TOKEN'
solves the error, but establish no connection!
Beside this, accessToken or access_token is nowhere mentioned!

@nao-pon
Copy link
Member

nao-pon commented Jan 1, 2020

@osworx It's same to OneDrive. See #2121.

define('ELFINDER_BOX_CLIENTID',     'xxx');
define('ELFINDER_BOX_CLIENTSECRET', 'xxx');
$roots[] =array(
    'driver' => 'Box',
    'accessToken' => '{"expires":1577848691,"data":{"access_token":"xxx","expires_in":3857,"restricted_to":[],"refresh_token":"xxx","token_type":"bearer"}}'
);

@nao-pon
Copy link
Member

nao-pon commented Jan 3, 2020

@osworx The latest nightly has been modified to properly handle refresh tokens. Try the latest nightly.

@nao-pon nao-pon closed this as completed Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants