GithubHelp home page GithubHelp logo

flawyte / static-auth Goto Github PK

View Code? Open in Web Editor NEW
30.0 2.0 3.0 357 KB

The most simple way to add Basic Authentication to a static website hosted on Vercel.

License: MIT License

TypeScript 100.00%
basic-authentication basic-auth now authentication vercel vercel-now serverless static-site nodejs

static-auth's Issues

Doesn't seem to work on Vercel + how does this actually work?

Hi, thanks for this lib.

I tried implementing it at https://github.com/UnlyEd/next-right-now/pull/222/files but it doesn't seem to work.

Also, I don't understand how this is supposed to work. What uses the index.tsx file? I can't make sense of what happens in the background. ๐Ÿค”

Is it compatible with ES7/TS or should it be written the same way as you code examples? (using require etc.)

Will it work locally? I guess not since Vercel isn't simulated locally.

Allow IP ranges as whitelist filter?

Hi @flawyte!

Would you be willing to accept a PR that adds the ability to whitelist IP addresses from basic auth? We use basic auth on development/staging servers quite often and use IP whitelists to grant access to anyone working from our office.

A while ago I wrote a blogpost about how one could approach that with a custom hooks in Next.js servers. I assume it's would be trivial for me to add it to this package.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.