Comments (4)
The backup script works fine, the issue is with the dropbox api token. Apparently dropbox only issues short-span tokens now(expires in about 4hrs). To get a token to last, we can request for a
refresh token
and store both the tokens and they will be used every time the script runs. So, up until now all we used was a token and it just worked. There was no oauth flow, no need to authenticate as we had provided the token which was generated from the dropbox app console. But, the console cannot generate refresh tokens, that has to be done with a script. And the script needs:app_key
,app_secret
,access_token
,refresh_token
. The first two can be found in the app console. For the last two, we can run the script just once, which will fetch both(after authentication) and can store them somewhere. The recurring backup will also require all four variables. So maybe we can add three more environment variables(?) and the script which needs to be run only once for setting up dropbox.
Nice find! Can you submit the changes pertaining to just the refresh token in a PR? We can work on the other two action items in subsequent PRs. Thanks!
from metakgp-wiki.
Pls assign me this issue.
from metakgp-wiki.
Sure!
from metakgp-wiki.
The backup script works fine, the issue is with the dropbox api token. Apparently dropbox only issues short-span tokens now(expires in about 4hrs). To get a token to last, we can request for a refresh token
and store both the tokens and they will be used every time the script runs.
So, up until now all we used was a token and it just worked. There was no oauth flow, no need to authenticate as we had provided the token which was generated from the dropbox app console. But, the console cannot generate refresh tokens, that has to be done with a script. And the script needs: app_key
, app_secret
, access_token
, refresh_token
. The first two can be found in the app console. For the last two, we can run the script just once, which will fetch both(after authentication) and can store them somewhere.
The recurring backup will also require all four variables. So maybe we can add three more environment variables(?) and the script which needs to be run only once for setting up dropbox.
from metakgp-wiki.
Related Issues (20)
- Static file links HOT 2
- Dependency Dashboard
- MetaWiki v2
- Use HitCounters Extension For Trending Pages HOT 1
- Find a New Way to Update Popular and Trending Pages HOT 20
- Restore Images in Restore Script HOT 2
- Automatic Deployment? HOT 2
- Set Up CI
- Update Documentation HOT 1
- Update DNS Denylist
- Install pywikibot from a better source
- Migrate to Database of Babel HOT 2
- [BUG] Update top trending job is failing HOT 1
- Use a newer version of Node.js for the Parsoid container
- Use Python 3 for the backup container
- Replace the extension RecentChanges with SimpleChanges HOT 1
- Investigate and fix problems with ArticleFeedbackV5
- Investigate if Scribunto configuration lines are required anymore
- Unable to submit suggestion for improvement at he bottom of an article HOT 1
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 metakgp-wiki.