Git Product home page Git Product logo

Comments (5)

josephg avatar josephg commented on August 22, 2024

Good idea :)

from sharejs.

woloski avatar woloski commented on August 22, 2024

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.

sandro-pasquali avatar sandro-pasquali commented on August 22, 2024

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.

wmertens avatar wmertens commented on August 22, 2024

@woloski @sandro-pasquali we would be most grateful if you could write a wiki page about your experiences :-)

from sharejs.

daredevildave avatar daredevildave commented on August 22, 2024

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)

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.