Background
Now I am trying to create an application with couchDB / couchapp that will store constant and important information from the user, and I am stuck on the steps required to register the user using couchapp.
Essentially, I want me to have a simple registration form that users can use to register an account for my application. This entails creating a new user in the couchdb _users database and creating a new database, and the new user has appointed the database administrator role.
All that requires server administrator credentials.
Ideally, I wish I could make a call using one of the jquery.couch.js functions, but there seems to be no safe way to do this. (or is there?)
Question
What is the most efficient but safe way to offload this task to medium-sized software or otherwise?
By effective, I mean the need for the least number of steps for the user, not necessarily the least amount of hassle for me.
As of now, I created a separate node.js server that receives registration requests. My couchDB server admin credentials are stored as supposed private variables in the node server.js file. Then I send POST any request to create db to couchDB using couch-client .
Am I jumping through too many (potential unsafe) hoops here? Is there a better way to ensure a secure registration process?
Thanks.
jquery couchdb couchapp
Tan Yew Wei
source share