Skip to content

Should I be including Bearer or Basic Authorization headers in requests to couchdb? #59

Answered by fynnlyte
mugwhump asked this question in Q&A
Discussion options

You must be logged in to vote

So is Bearer auth only for requests to couch-auth's node server, and requests to the couchdb server must use Basic auth?

Yes:

  • for requests to CouchDB, you need to use basic auth as you've described
  • for requests to couch-auth or to your own routes that you protect via couch-auth (see here) you need to use the bearer token

couch-auth doesn't have JWT support.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mugwhump
Comment options

@fynnlyte
Comment options

@mugwhump
Comment options

@mugwhump
Comment options

@fynnlyte
Comment options

Answer selected by mugwhump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants