[Winstone-devel] BasicAuthenticationHandler bug
Status: Beta
Brought to you by:
rickknowles
From: Cory O. <co...@co...> - 2007-04-10 20:14:12
|
It appears as if the Base64 decoding used in the BasicAuthenticationHandler is not working properly. When debugging I found the incoming encoded string did contain a valid username and password however the results of call the decode methods were only returning the first 3 letters of the string (and hence validation wasn't working). I haven't gone on to see where the bug lies in the decoding algorithm included. However I have been able to replace calls to the decode methods with calls to a Base64 utility class I've used for a while and I things started working properly. My Base64 utility class came from an older Dr Dobb's Journal article. I believe you can still get the code at http://ddj.com/code/ddj.html. The issue was from July 1999 (ftp://66.77.27.238/sourcecode/ddj/1999/9907.zip - look in the x509.zip file include here). Cory |