ltonetwork / mongodb-rest

JSON REST server for MongoDB (using node.js)
MIT License
405 stars 143 forks source link

Add authentication? #4

Closed superbobry closed 6 years ago

superbobry commented 13 years ago

Hello, any plans to plug in basic or digest auth support?

tdegrunt commented 13 years ago

Not sure what you want to achieve with having it added in? Is your idea to expose a REST interface publicly and put it behind basic/digest authentication?

My personal intention was to never do that and have it proxied behind a webserver, which then can also take care of authentication.

superbobry commented 13 years ago

Well, my idea was to require authentication for some of the resources and / or methods. So, for instance, any user is allowed to do GET on /foos/ but only some of the users can do POST on /foos/.

KenEucker commented 12 years ago

I also wish that this feature was built into this project, as it would take all of the database work out of my current project and allow me to focus on other key features.

lyetz commented 11 years ago

I'm curious as to whether or not this was every implemented. Any updates?

ashleydavis commented 10 years ago

I'm planning on looking into this in a future version.

https://github.com/ashleydavis/mongodb-rest

Minstel commented 6 years ago

Implemented in https://github.com/legalthings/mongodb-rest/pull/45

KenEucker commented 6 years ago

Thanks for this update @ashleydavis. I no longer work on the project I originally needed this for, but am excited to see this become a more usable solution. I look forward to testing out my idea with this feature in the near future!