« Previous Next »

Thread: How do I redirect to another web page when a user failed to authenticate through Integrated Windows Authentication?

Last post 11-19-2008 9:18 AM by Ricardo_777. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 11-19-2008, 5:18 AM

    How do I redirect to another web page when a user failed to authenticate through Integrated Windows Authentication?

    I am using Integrated Windows Authentication in my web application. Only a few pages are restricted and needs to be authenticated in order to access those pages. Now, what I am trying to implement is, in case a user bypassed the authentication by canceling the login dialog box, I want it to redirect to a default page. In case the user successfully authenticated then the user will get the corresponding page.

    Somebody, help me please!

  • 11-19-2008, 5:36 AM In reply to

    Re: How do I redirect to another web page when a user failed to authenticate through Integrated Windows Authentication?

    If I understand your requirement correclty, this is not possible with Intergrated windows Authentication.

    You will have use Form based authentication in your application and that will give you the functionality that you are looking for.

    HTH.

    ~ Ganesh

  • 11-19-2008, 6:51 AM In reply to

    Re: How do I redirect to another web page when a user failed to authenticate through Integrated Windows Authentication?

    Hi,

    If you are using IWA you shouldn't see an authentication prompt, it works seamlessly by taking the current logged-on user's credentials and passing those to the web server.

    However, you will see an authentication prompt if the user doesn't have permission to access the underlying file system resources. In that case the users will receive the default 401.3 custom error page that IIS serves. You could modify that page if that is what you are trying to do.

    What is it you are actually trying to achieve ? Tell unauthorised users that they can't access the protected content ? If that's the case then IIS is already doing that for you.

    Regards, 

    Paul Lynch | www.iisadmin.co.uk
  • 11-19-2008, 9:18 AM In reply to

    Re: How do I redirect to another web page when a user failed to authenticate through Integrated Windows Authentication?

     Thanks Folks!  I've got the answer now............
Page 1 of 1 (4 items)
Microsoft Communities