Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic password protection #30

Closed
guidobouman opened this issue Oct 12, 2016 · 10 comments
Closed

Basic password protection #30

guidobouman opened this issue Oct 12, 2016 · 10 comments

Comments

@guidobouman
Copy link

When using list, you might want to supply a password to protect your directory or static site.

This is especially important when using now-serve to serve a staging environment that should not be reachable by every person on the internet.

@guidobouman
Copy link
Author

@leo I'm working on a PR, should this be in the form of a micro-plugin or can I use http-auth?

@rauchg
Copy link
Member

rauchg commented Oct 13, 2016

This is a cool idea. Maybe with envs? HTTP_BASIC_USER and HTTP_BASIC_PASSWORD ?

@guidobouman
Copy link
Author

Yeah, I thought the same. Or with a HTTP_BASIC_AUTH string: username:password or username:password_hash

@taravancil
Copy link
Contributor

@guidobouman are you still working on this? I was thinking about taking a stab at it, but I don't want to jump in if you're still planning to do it 😄

@guidobouman
Copy link
Author

Have a go! I can assist if you're running into any issues.

@taravancil
Copy link
Contributor

Cool, thanks!

@timkendall
Copy link
Contributor

Implemented this as just more CLI flags. Let me know what you guys think.

@leo
Copy link
Contributor

leo commented Dec 4, 2016

#49

@leo leo closed this as completed Dec 4, 2016
@paulintrognon
Copy link

paulintrognon commented Jul 10, 2018

Hi, since the rewrite I can't see this option anywhere. Is it still possible to add a basic protection when using serve?

@hormesiel
Copy link

@paulintrognon Yes, but it seems like the only way now is to do it by yourself. See how here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants