fndn-auth-simple
v1.0.0
Published
Ultra simple authentication middleware, that:
Readme
fndn-auth-simple
Ultra simple authentication middleware, that:
- reads a list of tokens from
process.env.TOKENS - checks all requests for a
x-auth-tokenheader - calls
next()if :- req.path starts with 'pub' (to allow public endpoint)
- req is from localhost
Poor, indeed, but often all we need.
It also igonres request for /favicon.ico
