X
Tap here to go to the mobile version of the site.

Support Forum

Can Firefox HTTP basic authentication dialog handle non-english user name and password?

Posted

Firefox's HTTP basic authentication dialog is encoding non-english user name and passwords incorrectly. Everything works when I enter English user name and password. However, if I input valid user name and/or password with non-english character(s) in them, I cannot login. The authentication fails.

I turned to Fiddler and found that FireFox is sending incorrectly encoded Authorization header. Traces below. If I send correctly encoded Authorization header everything works. The test below uses Chinese characters.

Working scenario using English user name and password:


GET http://myhost:8080/notification/syndication HTTP/1.1 Accept-Language: en-US User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E) Accept-Encoding: gzip, deflate Connection: Keep-Alive Authorization: Basic dXNlcjE6cGFzc3dvcmQ= Host: myhost:8080


Non-working scenario using non-English character user name and password:


GET http://myhost:8080/notification/syndication HTTP/1.1 Accept-Language: en-US User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E) Accept-Encoding: gzip, deflate Connection: Keep-Alive Authorization: Basic e1UNOnNwc3M= Host: myhost:8080

Note the incorrect Authorization header string product by Firefox code: Authorization: Basic e1UNOnNwc3M=

Correct base64 encoding would have yielded this authorization header instead: Authorization: Basic 55m75b2V5ZCNOnNwc3M=

Is this a bug in Firefox? Perhaps there is a configuration change that I need to make to input non-English user name and password in the basic authentication dialog? Chrome does not have this issue. Internet Explorer has the same problem.

Firefox's HTTP basic authentication dialog is encoding non-english user name and passwords incorrectly. Everything works when I enter English user name and password. However, if I input valid user name and/or password with non-english character(s) in them, I cannot login. The authentication fails. I turned to Fiddler and found that FireFox is sending incorrectly encoded Authorization header. Traces below. If I send correctly encoded Authorization header everything works. The test below uses Chinese characters. Working scenario using English user name and password: ------------------ GET http://myhost:8080/notification/syndication HTTP/1.1 Accept-Language: en-US User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E) Accept-Encoding: gzip, deflate Connection: Keep-Alive Authorization: Basic dXNlcjE6cGFzc3dvcmQ= Host: myhost:8080 Non-working scenario using non-English character user name and password: --------------- GET http://myhost:8080/notification/syndication HTTP/1.1 Accept-Language: en-US User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E) Accept-Encoding: gzip, deflate Connection: Keep-Alive Authorization: Basic e1UNOnNwc3M= Host: myhost:8080 Note the incorrect Authorization header string product by Firefox code: Authorization: Basic e1UNOnNwc3M= Correct base64 encoding would have yielded this authorization header instead: Authorization: Basic 55m75b2V5ZCNOnNwc3M= Is this a bug in Firefox? Perhaps there is a configuration change that I need to make to input non-English user name and password in the basic authentication dialog? Chrome does not have this issue. Internet Explorer has the same problem.

Additional System Details

Installed Plug-ins

  • Shockwave Flash 18.0 r0
  • Shockwave Flash 17.0 r0
  • Mozilla Plug-in
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.11
  • Google Update
  • 5.1.40416.0
  • Next Generation Java Plug-in 10.75.0 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • IBM Global Print Plugin version 4.1
  • NVIDIA 3D Vision Streaming plugin for Mozilla browsers
  • NVIDIA 3D Vision plugin for Mozilla browsers
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0

More Information

FredMcD
  • Top 10 Contributor
4305 solutions 60413 answers

I've called the big guys to help you. Good luck.

I've called the big guys to help you. Good luck.