Comments (5)
Good idea :)
from sharejs.
We implemented authentication using everyauth on MarkdownR
https://github.com/southworksinc/markdownR/blob/master/src/server.js
Next step would be to do invitation and authorization and plug with sharejs access control logic.
from sharejs.
It may not be for everyone (esp. if not using https for communication), but authenticating via Basic Auth will set the "authorization" header, which can be processed (#accept or #reject) as needed by the share @auth system:
var authHeader = client.headers.authorization;
var token = authHeader.split(/\s+/).pop() || ""; // The encoded auth token
var auth = new Buffer(token, 'base64').toString(); // Convert from base64
var parts = auth.split(/:/);
var username = parts[0];
var password = parts[1];
If accessing the client "page" must first satisfy basic auth...
from sharejs.
@woloski @sandro-pasquali we would be most grateful if you could write a wiki page about your experiences :-)
from sharejs.
The Wiki now contains an example using the authentication property in sharejs.open() https://github.com/josephg/ShareJS/wiki/User-access-control
from sharejs.
Related Issues (20)
- Serialization of custom OT types HOT 2
- 'createSubscribeQuery' only works when share is connected under WebSockets
- Main Example HOT 1
- Will encrypting operations ever be supported
- Issues with resubscribed docs removed HOT 1
- http://sharejs.org/ is down? HOT 3
- How to inform the client when init a `doc` that whether the `doc` exists or not?
- Linear performance issues with larger number of operations submitted
- Sharejs.org Demo Site Not Live HOT 2
- Require ShareJS with Browserify, cannot find module 'ot-json0' HOT 1
- Authorization with latest ShareJS
- Project status HOT 5
- Multiple Documents using sharejs HOT 1
- Is it possible to run ShareJS in a multi clustered environment ?
- Issue in ShareJS Codemirror editor
- Postgres for backend store
- What is the current status?
- Error: `make` failed with exit code: 2 HOT 2
- Cannot read property 'handle' of undefined HOT 1
- please delete
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 sharejs.