[BISERVER-10049] Basic-Auth dialog shows after login when it shouldn't. Detecting valid Authentication before forcing auth dialog.