Comments (12)
You'd have to implement an OAuth UI for your users and store the tokens. It's the normal OAuth 2.0 access token flow.
from remotestorage.io.
Thanks, so I can easily take remote_storage_wire_bearerToken
from localstorage as soon as a user has successfully connected and use it on the server to fetch for data of this user?
from remotestorage.io.
Excerpts from jorin vogel's message of 2012-10-27 19:44:00 +0000:
Hi together,
can someone tell me if it's already possible to access a normal remoteStorage provider (like 5apps.com) with node?
As far as I can tell from reading https://groups.google.com/forum/?fromgroups=#!topic/unhosted/kI9DI_9xt28 I have to set the bearer token on the server what I can only do on my own server. So it's not working in the moment?
Do you have any plans for the node support?Thanks!
you might like to check: https://github.com/jcoglan/remotestorage-oauth
also please share with us updates about your progress on using remoteStorage from node apps!
from remotestorage.io.
@jorin-vogel you shouldn't get remote_storage_* keys from localStorage directly. I've added remoteStorage.getBearerToken
for that now.
Once you have a token, you can use remoteStorage.nodeConnect to connect.
from remotestorage.io.
@elf-pavlik thanks for sharing the link but for the use-case I'm thinking of I need a web-interface anyway.
@nilclass I were looking at http://remotestoragejs.com/build/0.7.0-head/remoteStorage and couldn't find the getBearerToken
method but thanks for letting me now that it's available now. Does remoteStorage provide some way to access remote_storage_widget_useraddress
too?
from remotestorage.io.
No, but once you are connected you can use remoteStorage.getStorageHref
and pass that as href
to nodeConnect.setStorageInfo
. That way the nodejs part doesn't have to do another webfinger discovery.
from remotestorage.io.
I have one more question:
What do I have to do to get the bearer token?
I include http://remotestoragejs.com/build/0.7.0-head/remoteStorage.js and the root module.
Calling remoteStorage.claimAccess({'root':'rw'}); remoteStorage.displayWidget('remotestorage-connect');
works.
Logging in with [email protected] works.
But when I now call remoteStorage.getBearerToken()
it returns undefined
.
What am I missing?
from remotestorage.io.
But when I now call remoteStorage.getBearerToken() it returns undefined.
Indeed.
What am I missing?
Nothing.
Should work now. Sorry for the mess.
from remotestorage.io.
Thanks!
from remotestorage.io.
Hey Jorin, out of curiosity, what are you working on?
On Sun, Oct 28, 2012 at 11:29 PM, jorin vogel [email protected]:
Thanks!
โ
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-9852900.
from remotestorage.io.
I try to build a small service which automatically sends you backups of your remoteStorage into your mailbox. A first version is already running on heroku and the source is on github. It's not ready yet but some of the functionality is already working. Check it out and feel free to contribute! Here are the open issues and I could need some help with this remoteStorage.js issues.
@Epic720: Maybe you could help out with the data generation and zipping as it should be familiar for you. That would be awesome!
from remotestorage.io.
@jorin-vogel this is so simple and great! Now I donโt need to sweat anymore when dogfooding remotestorage apps!
from remotestorage.io.
Related Issues (20)
- improve http://remotestorage.io/get/ HOT 6
- announce 0.9.0 HOT 2
- new protocol (02) hard to find HOT 7
- "open the chat in your browser" link broken HOT 4
- "adding yours" links broken HOT 2
- Spec link on forums is outdated and 404 HOT 2
- Forums HOT 2
- review list of open source remoteStorage servers HOT 3
- enable Content Negotiation for JSON-LD @context files HOT 1
- publish docs from remotestorage.js /doc folder HOT 8
- "Site temporarily disabled" HOT 5
- [forums] Header overlayed by content in private message view when scrolling down HOT 2
- Set up wiki HOT 7
- [FORUMS] None of the three federated login options is working HOT 11
- Let user select sandboxed directory to use? HOT 1
- Update spec links HOT 2
- Add links to design assets HOT 1
- remotestorage.io doesn't resolve. HOT 1
- Enable SyntaxHighlight in our Wiki HOT 1
- Wiki is currently not reachable through main page 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 remotestorage.io.