I'm trying to get Basic Authentication working with MQX 3.8.1. I followed the advice from HTTP Server Authentication and I'm getting a response header that contains the following:
WWW-Authenticate:Basic realm="test"
Server:MQX HTTP - Freescale Embedded Web Server
Content-Type:text/html
Connection:close
I'm using Firefox and it pops the authentication dialog box. I enter the username and password and click Ok and the authentication dialog appears again with the username and password fields empty.
Assuming the page I'm trying to load is index.html, do I have to put anything in the page header for basic authentication? I thought the browser would be sending the a request header with the username:password base64 encoded but I don't see it.
Thanks in advance for any advice.
Solved! Go to Solution.
The default value for HTTPDCFG_DEF_AUTH_LEN is 16. That was too small. I increased the size and the authorization is now working.
The default value for HTTPDCFG_DEF_AUTH_LEN is 16. That was too small. I increased the size and the authorization is now working.