nodemcu-httpserver icon indicating copy to clipboard operation
nodemcu-httpserver copied to clipboard

Support protecting only certain pages using Basic HTTP Authentication

Open marcoskirsch opened this issue 8 years ago • 1 comments

Right now it's all-or-nothing. I would like to have the ability to only use HTTP Authentication on some pages but not others. I imagine this by having a regular expression that matches the pages to protect in httpserver-conf.lua.

marcoskirsch avatar Jul 02 '17 04:07 marcoskirsch

A router would be a nice addition. It maps incomming url's to scripts instead of executing scripts directly. This way you can also control which middleware to run (such settings some hooks voor http basic auth).

that is also related to https://github.com/marcoskirsch/nodemcu-httpserver/issues/81

flip111 avatar Jul 15 '17 15:07 flip111