Comments (5)
Hi @alexdemers
I've addressed this issue in commit 19852f8. Please pull the changes and advise whether your problem persists.
from dropbox.
As I am not familiar with git/Github, I applied the changes manually in the code and it did worked. This also fixed the issue where one would see the Dropbox page to login, but instead leaves the page and goes back to the application. Because the request_token was there but not the access_token, the library would think that it had a correct access_token. It assumed that the user was entering his Dropbox credentials without leaving that page.
Now, after playing a bit with the implementation of this library, I figured that the easy way to delete the access to Dropbox it would be:
<?php
unset($_SESSION['dropbox_api']);
$db->query("DELETE FROM oauth_tokens WHERE userID = $user_id");
Am I missing something else to have the full cycle of Connecting to Dropbox -> Disconnecting from Dropbox -> Reconnecting to Dropbox?
from dropbox.
Hi,
I've added methods to each of the storage handlers to delete tokens from the session and filesystem/database (see commit eb260c7). You can simply call $storage->delete()
to make use of this feature.
To give the user peace of mind that your application can no longer interact with Dropbox on their behalf, you can instruct them to visit https://www.dropbox.com/account#applications and revoke access to the application.
Hope this helps :)
from dropbox.
That's awesome Ben! I'll implement this in my application :D
from dropbox.
Thanks, Alex. This issue is now closed.
from dropbox.
Related Issues (20)
- Request token not found After allow OAuth. HOT 2
- files starts with symbol @ not uploading. HOT 1
- The cURL OAuth consumer requires the cURL extension HOT 2
- Problem with putStream HOT 3
- Warning: Unexpected character in input: '\' (ASCII=92) state=1 HOT 2
- Can ConsumerAbstract->getRequestToken be public? HOT 1
- Forbidden error HOT 4
- Fatal Error HOT 3
- Examples not working HOT 2
- pufile.php example not working : Invalid file extension
- How to deploy this into my own server? Error:'Couldn't resolve host 'api.dropbox.com'' HOT 3
- "This app has been disabled." HOT 3
- Installation Instructions for Acquia Drupal ??
- How to set to the userID dynamically for each user? HOT 1
- Apps/TestFolder rights question HOT 1
- Need Help with Href Link
- Connect via token (upload file to one account) HOT 2
- How to use this library without Composer? HOT 2
- Migration to API v2
- Could not resolve host: api-content.dropbox.com HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dropbox.