Note that there are some explanatory texts on larger screens.

plurals
  1. POUser Signup in Couchapp/CouchDB through jquery.couch.js or Otherwise
    primarykey
    data
    text
    <p><strong>Background</strong></p> <p>Right now, I'm trying to build an app with couchDB/couchapp that would store persistent and crucial information from the user, and am stuck on the steps required for user signup with couchapp. </p> <p>Essentially, what I want to do is to have a simple signup form that users can use to register an account for using my app. This would entail creation of a new user in the couchdb _users database, and the creation of a new database, with the new user assigned the role of database admin. </p> <p>All that requires server admin credentials. </p> <p>Ideally, I'd love to be able to make a call using one of the <code>jquery.couch.js</code> functions, but there doesn't seem to be a secure way to do that. (or is there??)</p> <p><strong>Question</strong></p> <p>What is the most efficient yet secure way to offload this task to a middle-layer software or otherwise?</p> <p>By efficient, I mean needing the least amount of steps for the user, not necessarily the least amount of hassle for me. </p> <p>As of right now, I've set up a separate node.js server that receives signup requests. My couchDB server admin credentials are stored as supposed private variables on the node <code>server.js</code> file. I then POST any db creation request back to couchDB using <a href="https://github.com/creationix/couch-client" rel="noreferrer"><code>couch-client</code></a>.</p> <p>Am I jumping through too many (potential insecure) hoops here? Is there a better way to ensure a secure signup process? </p> <p>Thanks. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload