simple-http-server
simple-http-server copied to clipboard
Add in authentication
Hey Andrew! I went ahead and added some auth features.
The basic idea is that you can now do...
nserver --auth p@ssw0rd
Then when the user hits localhost:8000
, they'll be directed to a login screen.
The login screen will prompt for a password.
Once the correct password has been entered, the duration of the session will not require any further authentication and will work as normal.
Let me know if you love or hate this, or have any additional questions.
Thanks!
Hey, sorry to take so long to respond to this! Have you considered using HTTP Basic Auth instead of building your own logic here?
I agree, HTTP Basic Auth seems to keep with the 'simple' theme of this server.
I would love someone to go with an HTTP Basic Auth solution! I don't have the time right now, unfortunately :\
I'll see if I can look into it.
On Sunday, November 24, 2013, Andrew Thorp wrote:
I would love someone to go with an HTTP Basic Auth solution! I don't have the time right now, unfortunately :\
— Reply to this email directly or view it on GitHubhttps://github.com/andrewpthorp/simple-http-server/pull/5#issuecomment-29176100 .
Jonathan Creamer http://jcreamerlive.com 615-392-0809
- http://www.facebook.com/profile.php?id=38421291 http://twitter.com/#!/jcreamer898 http://www.linkedin.com/profile/edit?id=82666787 http://www.google.com/profiles/matrixhasyou2k4 http://www.myspace.com/matrixhasyou2k4* jcreamer898
That would be great, let me know if you want some help on this. I should have time over the holiday weekend :)
Oh, I'd love some help. If you already have some ideas than have at it!
Jonathan Creamer http://jcreamerlive.com 615-392-0809
- http://www.facebook.com/profile.php?id=38421291 http://twitter.com/#!/jcreamer898 http://www.linkedin.com/profile/edit?id=82666787 http://www.google.com/profiles/matrixhasyou2k4 http://www.myspace.com/matrixhasyou2k4 * jcreamer898
On Mon, Nov 25, 2013 at 9:24 AM, Matthew Forr [email protected]:
That would be great, let me know if you want some help on this. I should have time over the holiday weekend :)
— Reply to this email directly or view it on GitHubhttps://github.com/andrewpthorp/simple-http-server/pull/5#issuecomment-29209969 .