Cancelling Authentication Request

Discussion in 'ASP .Net Security' started by Wayne Carlaw, Mar 30, 2005.

  1. Wayne Carlaw

    Wayne Carlaw Guest

    I have successfully implemented Peter Bromberg's Digest authentication
    assembly (http://www.eggheadcafe.com/articles/20030701.asp). One thing I've
    noticed though that I can't figure out. If a user cancels the request, they
    receive a .NET 401 application error page - not the Response.Write "Access
    Denied". I've tried every way I can think of to customize that page -
    customErrors in web.config, capturing the HttpApplication.Error event,
    configuring the IIS default error page, etc, but nothing seems to work. Any
    ideas on how I can get rid of this ugly default error page? Interesting to
    note, it only occurs the first time. Once the user clicks the OK button (to
    attempt authentication and gets rejected) and then clicks the "Cancel"
    button, the customized error page appears.

    Any help would really be appreciated. Thanks.
    Wayne Carlaw, Mar 30, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bob
    Replies:
    4
    Views:
    4,946
    S. Justin Gengo
    Jul 22, 2003
  2. del

    Cancelling a HTTP data post

    del, Nov 7, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    317
  3. Vik

    Cancelling the events

    Vik, Apr 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    326
    Marina
    Apr 6, 2004
  4. Charlie@NISH
    Replies:
    3
    Views:
    781
    Marina
    Aug 30, 2005
  5. Stu
    Replies:
    0
    Views:
    366
Loading...

Share This Page