tags:

views:

33

answers:

1

Hello,

i have a web application with Windows Authentication enabled. In my web.config I restrict the access with the following code:

 <authorization>
  <allow users="rba\eigg"/>
  <deny users="*"/>
 </authorization>

When I call the application in a browser, the IE's standard login dialog pops up. If I close it by 'Cancel' I get the HTTP 401 (Access is denied) error page as expected.

Is there a way to suppress the login dialog so that the user gets the 401 error page directly?

Thanks! Rocko

A: 

At risk of sounding terse, let me just say: No. ;-)

It is an intrisic function of any browser when presented with a challenge/response type of auth.

Fiddling with this in any way would be a security risk and is not possible.

Just the way it is.

Cheers.

Sky Sanders