GithubHelp home page GithubHelp logo

Comments (12)

raucao avatar raucao commented on May 28, 2024

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.

jorinvo avatar jorinvo commented on May 28, 2024

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.

elf-pavlik avatar elf-pavlik commented on May 28, 2024

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.

nilclass avatar nilclass commented on May 28, 2024

@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.

jorinvo avatar jorinvo commented on May 28, 2024

@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.

nilclass avatar nilclass commented on May 28, 2024

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.

jorinvo avatar jorinvo commented on May 28, 2024

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.

nilclass avatar nilclass commented on May 28, 2024

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.

jorinvo avatar jorinvo commented on May 28, 2024

Thanks!

from remotestorage.io.

silverbucket avatar silverbucket commented on May 28, 2024

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.

jorinvo avatar jorinvo commented on May 28, 2024

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.

jancborchardt avatar jancborchardt commented on May 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.