Couchdb: CouchDB 2.1 OAuth2 Authentication method

Created on 24 Nov 2017  路  2Comments  路  Source: apache/couchdb

According to this issue, OAuth 1.0 was removed from CouchDB starting from version 2.1. But Is there a way to implement OAuth authentication still? Maybe version OAuth2 (by using some plugins etc.). Will oauth return to the CouchDB in future versions?

Most helpful comment

CouchDB's OAuth implementation was outdated, unmaintained and (in some regards) faulty.

CouchDB 2.x implements a proxy authentication mechanism. Using this, you can have any external process handle authentication for you and pass on the appropriate credentials.

CouchDB Documentation: http://docs.couchdb.org/en/latest/api/server/authn.html#proxy-authentication

One implementation of OAuth 2.0 that is known to work is using Apache HTTP Server as a reverse proxy in front of CouchDB. You can use something like mod_auth_openidc to add this support.

I don't know what is coming to CouchDB in the future, but for now, this is your best option. I do know that there are real customers using the proxy auth solution in production.

All 2 comments

CouchDB's OAuth implementation was outdated, unmaintained and (in some regards) faulty.

CouchDB 2.x implements a proxy authentication mechanism. Using this, you can have any external process handle authentication for you and pass on the appropriate credentials.

CouchDB Documentation: http://docs.couchdb.org/en/latest/api/server/authn.html#proxy-authentication

One implementation of OAuth 2.0 that is known to work is using Apache HTTP Server as a reverse proxy in front of CouchDB. You can use something like mod_auth_openidc to add this support.

I don't know what is coming to CouchDB in the future, but for now, this is your best option. I do know that there are real customers using the proxy auth solution in production.

delete

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YC picture YC  路  5Comments

ghost picture ghost  路  5Comments

wohali picture wohali  路  5Comments

sploders101 picture sploders101  路  3Comments

stheobald picture stheobald  路  4Comments