Coder Social home page Coder Social logo

Add support for .htaccess/htpasswd about serve HOT 4 CLOSED

vercel avatar vercel commented on June 21, 2024
Add support for .htaccess/htpasswd

from serve.

Comments (4)

derhuerst avatar derhuerst commented on June 21, 2024

[imho]

I think in the year of 2017, we don't need .htpasswd. Often, users store (hashed) passwords in the webroot. Authentication should nowadays be done by either by a (reverse) proxy or a separate auth service. Theoretically, even password authentication should be a thing of the past.

For the simple use case of setting up and adhoc web server, user & pw auth is sufficient.

I guess this is an ideological decision wether supporting these use cases is worth it for zeit and the broader community.

from serve.

jamo avatar jamo commented on June 21, 2024

Yeah, necessary .htpasswd isn't the auth file format we should have.
But it should be something that wouldn't vendor lock and that is hassle free.

from serve.

derhuerst avatar derhuerst commented on June 21, 2024

Not sure I expressed clearly enough what my opinion on this matter is. If I did, don't take this as an offence.

I think it's not the job of serve to deal with any auth more sophisticated than user/pw. It should be done by another service (as in web service) or proxy/api layer.

I've been following the development of http-server for a while. This is a feature that, as you can see with many feature requests over at http-server, only serves the needs of a very narrow user base and can easily be done by external packages.

from serve.

leo avatar leo commented on June 21, 2024

I agree with both of you. But overall, I think this would be too much for this little package. People should put something on top and use another service.

from serve.

Related Issues (20)

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.