fixing authentication flow to work with WebSphere and proxy server - remove debug code