HTTP Server Authentication

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HTTP Server Authentication

Jump to solution
958 Views
pbanta
Contributor IV

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.

Labels (1)
Tags (3)
0 Kudos
1 Solution
433 Views
pbanta
Contributor IV

The default value for HTTPDCFG_DEF_AUTH_LEN is 16.  That was too small.  I increased the size and the authorization is now working.

View solution in original post

0 Kudos
1 Reply
434 Views
pbanta
Contributor IV

The default value for HTTPDCFG_DEF_AUTH_LEN is 16.  That was too small.  I increased the size and the authorization is now working.

0 Kudos