Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CouchDB with Auth0

Is it possible to use Auth0 with CouchDB or Cloudant? If so, does anyone know a tutorial, code sample or github project for examples?

This question was already asked in the Auth0-Forum (not by me) but with no response: https://auth0.com/forum/t/can-you-use-auth0-with-couchdb-or-cloudant/3127

In my special case i want to connect a Ionic 2 App with Auth0 to a CouchDB instance without a middle (API) layer.

Any help would be appreciated!

like image 258
Manuel Taber Avatar asked Dec 08 '25 04:12

Manuel Taber


1 Answers

There's the couch_jwt_auth plugin which allows users to authenticate via JWT tokens and hence allows this kind of scenario. There's even an example project on how to use it with pouchdb and Auth0, so guess this could be kind of useful for you.

I'm using the same plugin to authenticate users and it works flawlessly. I actually maintain a fork of it which allows JWT signature verification with asymmetric keys (RS256) - And yeah once I feel confident enough there'll be a pull request.

like image 69
dmunch Avatar answered Dec 12 '25 05:12

dmunch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!