CouchDB Integration
CouchDB already has quite a lot of option to deal with auth, recently they added JWT (gateway) and only missing part is a issuer of this token. Please add. https://docs.couchdb.org/en/main/api/server/authn.html#:~:text=JWT%20authentication%20enables%20CouchDB%20to,JWT's%20%E2%80%9CNONE%E2%80%9D%20algorithm).
@VladimirCores thank you for reporting it. I will soon try to integrate this.
@lakhansamani I'm picking the couchbase provider integration.
Thanks @manojown
Authorizer can already be the JWT issuer for CouchDB's JWT authentication, with no extra integration:
- Use an asymmetric key:
--jwt-type=RS256with--jwt-private-key/--jwt-public-key(the public key is also published at/.well-known/jwks.json). - Add that public key to CouchDB's
[jwt_keys]config. - Set
--jwt-role-claim=_couchdb.rolesso the roles land in the claim CouchDB reads. This claim is in the ID token. To use the access token instead, add_couchdb.roleswith--custom-access-token-script.
(The Couchbase storage backend mentioned above is a separate feature and is also supported.) Closing; reopen if something is missing.