Cypress技术论坛
直播中

石天才

8年用户 212经验值
私信 关注
[问答]

HTTPServer可以支持基本的HTTP身份验证吗?

HTTPServer可以支持基本的HTTP身份验证吗?我知道代码中没有任何示例,但想知道是否有人对此进行编码支持?它看起来不像代码401包含在支持的响应代码中。
我想密码保护一些配置网页,而基本的HTTP认证提供了可接受的保护级别。
如果不可能用HTTPServer支持基本HTTP身份验证,那么有没有其他的首选或系统的密码保护方法保护HTTP服务器服务的一些网页?(可能通过网页数据库?).
谢谢,

以上来自于百度翻译


     以下为原文
  Can the http.server support basic HTTP authentication?   I know that there aren't any examples in the code provided, but wondering if anyone has coded support for this?   It doesn't look like the code 401 is included in the supported response codes.  

I'd like to password protect some configuration webpages and the basic HTTP authentication provides the acceptable level of protection.   

If it is not possible to support basic HTTP authentication with http.server, is there any other preferred or systematic method of password protecting some web pages served by http.server?  (possibly through the webpage database?).   

Thanks,

回帖(1)

张英

2018-10-30 10:35:05
HTTPyServer不支持基本身份验证。基本身份验证的状态代码和相关细节没有实现。您可以通过添加必需的状态代码并向Web服务器添加基本的AuthTebug来实现基本的认证器(以便它能够理解用户的名字:客户端发送的密码)。
如果您要寻找安全的Web服务器,我们建议您查看WHTES中的HTTPSyServer SNIP。这个SNIP应用程序连接到一个Wi-Fi网络作为一个STA(客户端),然后启动一个安全的Web服务器并等待请求。

以上来自于百度翻译


     以下为原文
  The http_server does not support basic authentication. The status code and related details for basic authentication are not implemented WICED. You can implement the basic authenticator by adding the required status code and add basic auth capabilities to web server(so that it understands the user_name:password sent by the client).
 
If your looking for secure web server, we would recommend you to have a look at https_server snip in WICED. This snip app connects to a Wi-Fi network as a STA (client), then starts a secure web-server and waits for requests.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分