gelnior / newebe

Distributed Social Network made with Python
newebe.org
Other
105 stars 19 forks source link

Add basic credentials #19

Closed rakoo closed 12 years ago

rakoo commented 12 years ago

Add basic credentials with a username and a password to access the newebe database.

You will have to add this user to your couchdb server to do this :

{
  "_id": "org.couchdb .user:newebe",
  "type": "user",
  "name": "newebe",
  "password": "newebe"
}
gelnior commented 12 years ago

How can I set default user (newebe:newebe) via a shell script to the CouchDB database ?

I'm ok to add this security feature but setting user should be done automatically inside installation script : https://github.com/gelnior/newebe/blob/master/deploy/install_deb.sh

A better solution would be to set the user automatically if it does not exist when newebe_server.py is run.

rakoo commented 12 years ago

You are right. I am working on it. Closing it for the moment; I'll come back when it's done.