simple-http-server icon indicating copy to clipboard operation
simple-http-server copied to clipboard

Add in authentication

Open jcreamer898 opened this issue 11 years ago • 6 comments

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!

jcreamer898 avatar Mar 01 '13 23:03 jcreamer898

Hey, sorry to take so long to respond to this! Have you considered using HTTP Basic Auth instead of building your own logic here?

andrewpthorp avatar Oct 22 '13 21:10 andrewpthorp

I agree, HTTP Basic Auth seems to keep with the 'simple' theme of this server.

emlama avatar Nov 25 '13 03:11 emlama

I would love someone to go with an HTTP Basic Auth solution! I don't have the time right now, unfortunately :\

andrewpthorp avatar Nov 25 '13 03:11 andrewpthorp

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

jcreamer898 avatar Nov 25 '13 13:11 jcreamer898

That would be great, let me know if you want some help on this. I should have time over the holiday weekend :)

emlama avatar Nov 25 '13 15:11 emlama

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 .

jcreamer898 avatar Nov 25 '13 15:11 jcreamer898