GithubHelp home page GithubHelp logo

Comments (6)

ronycohen avatar ronycohen commented on July 23, 2024

Hi, I think you can't. Superlogin use its own users DB.

from superlogin.

ander2 avatar ander2 commented on July 23, 2024

So then, why is dbServer.couchAuthDB option available?

Which is it's purpose? I'm little bit confused with this.

from superlogin.

ronycohen avatar ronycohen commented on July 23, 2024

It's because there is a difference between coudDB and Cloudant.

from superlogin.

colinskow avatar colinskow commented on July 23, 2024

@ander2 SuperLogin does not authenticate users directly with CouchDB, it only authenticates a user's sessions. When a user authenticates with SuperLogin, a (random) session key and password are generated. These credentials are temporary and can be used to authenticate with both your Node/Express API and CouchDB. The reason for this is that it is bad security to store a username and password (which may be the same on other sites) on a device and transmit it to the server on every request.

If you want normal simple CouchDB login, then SuperLogin is probably overkill for your needs. I created SuperLogin to increase the level of security and enable CouchDB and Node APIs to use the same authentication scheme.

from superlogin.

ybian avatar ybian commented on July 23, 2024

@colinskow It is a smart idea to authenticate users' sessions in _users table. I was very excited when I first found this project. It does the exact things I had in my mind with the exact technology stack for my current project. It saved me a lot of time. Big thanks to you!!

from superlogin.

tohagan avatar tohagan commented on July 23, 2024

@colinskow Ditto. Very cool and just what I needed. Lovin' it :) !

from superlogin.

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.