This repo contains examples of how to add Basic Authentication to a Now deployment using various languages / frameworks, along with some numbers that show the differences between each method.
Each example contains its own README file with some additional information.
- The
_static
directory contains the source code for the "website" that each implementation serves for demonstration purposes : HTML, CSS, images ... 1 - All the other directories are the different ways you can add Basic Authentication to a Now deployment. Checkout their code to see how to implement it in your project
1 The demo website has a public area and a restricted /admin
area (username / pass : admin
/ admin
).
Example | ๐ฆ Lambda size | ๐ Deployment URL |
---|---|---|
node | 83.47 KB | Link |
node-express | 385.52 KB | Link |
node-static-auth | 83 KB | Link |
Issues and PR are welcome!
- ๐ Fork and clone the project
- ๐ Create a directory named after the language / framework you want to add (for example
php
ornode-polka
) - ๐จโ๐ป Add the implementation
- ๐ Submit your PR