remotestorage-server
The remoteStorage core from https://github.com/remotestorage/starter-kit
interface
//set up the remoteStorage server instance: var RemotestorageServer = specVersion = 'draft-dejong-remotestorage-02' tokenStore = _data: {} { ; } { this_datausername+':'+token = scopes; ; } dataStore = _data: {} { ; } { this_datausernae+':'+key = buf; ; } ; var serverInstance = specVersion tokenStore dataStore; //set up a https server: var fs = https = httpsConfig = key: fs cert: fs ca: fs ; //add access tokens (you would typically do this from an ajax call in your OAuth dialog): tokenStore_data'me:SECRET' = serverInstance; tokenStore_data'me:GOD' = serverInstance; //serve storage: https; //get the link for including in your webfinger record: var link = remotestorageServer;
You will also need:
- a webfinger server, serving your webfinger record on path
/.well-known/webfinger
on port 443 (or on port 80 when testing on localhost). - an html page which serves as an OAuth dialog
See https://github.com/remotestorage/starter-kit for an examples of both.