How to get integrated credentials from anonymous access

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default How to get integrated credentials from anonymous access

    I want to allow both anonymous and integrated access to a web service
    simultaneously. That is, if the calling user can be authenticated on the
    server, I want the calling user's username. If not, I still want them to be
    able to access the web service.

    The documentation suggests that this is not possible, because if IIS allows
    anonymous, it doesn't pass the caller's credentials on to ASP.NET. This
    must not be true, however, because I can allow anonymous in IIS, but set
    <deny users="?" /> in web.config and get the WindowsIdentity for the caller
    that way. So it seems to me that IIS *must* pass those credentials on to
    ASP.NET, which then makes the decision to reject the request if it's from an
    unrecognized user.

    So. Is there a way to "tap in" to that process, so that I can get the
    username of a recognized user, but still allow access by unrecognized users?

    Thanks!

    -Michael Ames


    Michael Ames Guest

  2. Similar Questions and Discussions

    1. IIS 6.0 with anonymous access and on MX 6.1
      I was having a hard time setting up IIS 6.0 with anonymous access on MX6.1 I was able to run .asp extension but when running .cfm, I got the HTTP...
    2. issues mixing integrated Windows authentication and anonymous on same application
      I'm having issues mixing integrated Windows authentication and anonymous access on same IIS app. Basically, any post back event fails (Forms...
    3. Return credentials with anonymous authentication?
      Hi all, This is my Scenario: Have a login page in Application 1 with Anoynoumous authentication. Using this login page I would like to receive...
    4. Network File access using anonymous access
      I have seen a number of entries related to accessing remote resources (files in my case) that need to reside on a remote server. We must leave our...
    5. Please help with iis/asp.net config for anonymous access.
      Is this a virtual directory on a network share? Have you supplied the correct crendentials when setting up the virtual directory? If this is not on...
  3. #2

    Default Re: How to get integrated credentials from anonymous access

    Michael,

    try the following few lines of code on a suitable place:

    Response.StatusCode = 401;
    Response.StatusDescription = "Unauthorized";
    Context.ClearError();

    best regard



    Sascha


    Alexander Stojakovic Guest

  4. #3

    Default How to get integrated credentials from anonymous access

    Hi,

    I have the exact same problem and I'm really stuck!
    Does anyone know how can i get credentials in an anonymous mode?

    Thanks in advance!

    Quote Originally Posted by Alexander Stojakovic View Post
    Michael,

    try the following few lines of code on a suitable place:

    Response.StatusCode = 401;
    Response.StatusDescription = "Unauthorized";
    Context.ClearError();

    best regard



    Sascha
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139