Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

Uses AWS Lambda@Edge + Cloudfront to use JWT tokens with CouchDB.

License

Notifications You must be signed in to change notification settings

SteffenDE/couchdb-jwt-authorizer-edge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

couchdb-jwt-authorizer@edge

Greenkeeper badge Uses AWS Lambda@Edge + Cloudfront to use JWT tokens with CouchDB.

This enables using a CouchDB (Cluster/Standalone) Server which is used as CloudFront origin to authenticate users using JSON Web Tokens. As a result you can use the same authentication mechanism for your API and your database (at least that's what I wanted to do).

config.js

The config file needs the JWT secret to verify that the tokens are valid. If they are, the script adds Couch-Proxy-Auth headers to the backend request. Therefore it needs the CouchDB-Secret (see http://docs.couchdb.org/en/latest/config/auth.html#couch_httpd_auth/secret - at least that's strongly recommended).

About

Uses AWS Lambda@Edge + Cloudfront to use JWT tokens with CouchDB.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published