couchbase / couchbase-lite-java-listener

Embedded web server to expose Couchbase Lite REST API on an http socket
Apache License 2.0
12 stars 32 forks source link

Support for multiple HTTP server credentials #51

Open klehmann opened 10 years ago

klehmann commented 10 years ago

Looking at the code it seems that only one pair of credentials can be set for the embedded HTTP server that provides CouchDB REST APIs on Android. For our application we would need support for multiple pairs as it is already possible in the iOS version. Would be great if this could be added in a future version.

On iOS, setting multiple credentials is done in the CBLListener class via setPasswords and an NSDictionary argument: https://github.com/couchbase/couchbase-lite-ios/blob/master/Listener/CBLListener.m

tleyden commented 10 years ago

This looks like a useful change. If you could send a pull request it would expedite it.