windows pass through authentication\authorization....

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

  1. #1

    Default windows pass through authentication\authorization....

    I have a requirement for a company intranet where they want to use a single
    sign-on with their windows 2003 domain (AD) so I was thinking of using
    windows authentication in the asp.net application so that I can control
    functionality by the roles the usr is a member of.

    The question I want to know is can I force the popup windows for username,
    password, domain to appear by 'logging' off the user from the website. I
    read some where if I return a "403" in the reponse header it will show the
    dialog and the user will have to enter the information to proceed. I tried
    the following but i only get the 403 error page. So how do I force the popup
    window to appear?

    tried this but only get error page:

    Session.Abandon();
    Response.Clear();
    Response.StatusCode = 403;
    Response.End();


    Cheers in Advance

    Ollie Riches


    Ollie Guest

  2. Similar Questions and Discussions

    1. Secure authentication and authorization
      Hello, I am new to asp.net and try to lean as much as can. I read all about from based authentication and cookie based authorization. In real...
    2. How do you set Role-Based authorization for Windows Authentication?
      I am working on a company ASP.NET Intranet web application. I am using IBuySpy protal as my "go-by". It uses Forms authentication. I changed it...
    3. Authorization, Authentication in Web.config
      Hi I am trying to ensure that users can only enter my Web service on a specific Login web page. I've amended Web.config so that authorization...
    4. Really confused about authorization/authentication methods in ASP.Net
      I have been reading and reading the Microsoft best practices, articles on and on but still I can't figure out which method to chose to get started....
    5. authentication and authorization in subfolders
      Hello, I went through several posts and found out that it is only possible to have the authentication tag only at an app level but the...
  3. #2

    Default RE: windows pass through authentication\authorization....

    Hi Ollie,
    To force Windows POPUP ..Go to IIS under Directory Security turn off
    "Anonymous Access and click integrate Windows Auth..
    DO that to allow Windows Auth to validate against AD..
    For more Questions POST it...
    Enjoy
    PAtrick



    "Ollie" wrote:
    > I have a requirement for a company intranet where they want to use a single
    > sign-on with their windows 2003 domain (AD) so I was thinking of using
    > windows authentication in the asp.net application so that I can control
    > functionality by the roles the usr is a member of.
    >
    > The question I want to know is can I force the popup windows for username,
    > password, domain to appear by 'logging' off the user from the website. I
    > read some where if I return a "403" in the reponse header it will show the
    > dialog and the user will have to enter the information to proceed. I tried
    > the following but i only get the 403 error page. So how do I force the popup
    > window to appear?
    >
    > tried this but only get error page:
    >
    > Session.Abandon();
    > Response.Clear();
    > Response.StatusCode = 403;
    > Response.End();
    >
    >
    > Cheers in Advance
    >
    > Ollie Riches
    >
    >
    >
    Patrick.O.Ige Guest

  4. #3

    Default Re: windows pass through authentication\authorization....

    did you actually read the question?


    "Patrick.O.Ige" <PatrickOIge@discussions.microsoft.com> wrote in message
    news:2ED5CE5B-FC70-47F5-BBA1-438B21A8EE85@microsoft.com...
    > Hi Ollie,
    > To force Windows POPUP ..Go to IIS under Directory Security turn
    off
    > "Anonymous Access and click integrate Windows Auth..
    > DO that to allow Windows Auth to validate against AD..
    > For more Questions POST it...
    > Enjoy
    > PAtrick
    >
    >
    >
    > "Ollie" wrote:
    >
    > > I have a requirement for a company intranet where they want to use a
    single
    > > sign-on with their windows 2003 domain (AD) so I was thinking of using
    > > windows authentication in the asp.net application so that I can control
    > > functionality by the roles the usr is a member of.
    > >
    > > The question I want to know is can I force the popup windows for
    username,
    > > password, domain to appear by 'logging' off the user from the website. I
    > > read some where if I return a "403" in the reponse header it will show
    the
    > > dialog and the user will have to enter the information to proceed. I
    tried
    > > the following but i only get the 403 error page. So how do I force the
    popup
    > > window to appear?
    > >
    > > tried this but only get error page:
    > >
    > > Session.Abandon();
    > > Response.Clear();
    > > Response.StatusCode = 403;
    > > Response.End();
    > >
    > >
    > > Cheers in Advance
    > >
    > > Ollie Riches
    > >
    > >
    > >

    Ollie Guest

  5. #4

    Default Re: windows pass through authentication\authorization....

    I haven't actually tried this, but I thought I'd throw an idea at you.

    What if you try sending a 401 instead and add the proper WWW-Authenticate
    header to the response? The header value would depend on what kind of
    authentication you are using, but that might work.

    If it does, let me know as I'm curious.

    Thanks,

    Joe K.

    "Ollie" <ollie_riches@hotmail.com> wrote in message
    news:udUMLuH3EHA.4028@TK2MSFTNGP15.phx.gbl...
    >I have a requirement for a company intranet where they want to use a single
    > sign-on with their windows 2003 domain (AD) so I was thinking of using
    > windows authentication in the asp.net application so that I can control
    > functionality by the roles the usr is a member of.
    >
    > The question I want to know is can I force the popup windows for username,
    > password, domain to appear by 'logging' off the user from the website. I
    > read some where if I return a "403" in the reponse header it will show the
    > dialog and the user will have to enter the information to proceed. I tried
    > the following but i only get the 403 error page. So how do I force the
    > popup
    > window to appear?
    >
    > tried this but only get error page:
    >
    > Session.Abandon();
    > Response.Clear();
    > Response.StatusCode = 403;
    > Response.End();
    >
    >
    > Cheers in Advance
    >
    > Ollie Riches
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  6. #5

    Default Re: windows pass through authentication\authorization....

    Joe

    Thanks for the reply, I tried changing it to "401" and it forced the popup
    login window to appear and you can enter new credentials, but it does not
    clear out the credentials from the browser cache so you are still
    authenticated as the previous user if you hit 'Cancel', I didn't try it with
    the 'proper' WWW-Authenticate header cos i don't know what that should be -
    do you know at all ?

    nice to see you venture out of the AD newsgroups :)

    Cheers

    Ollie Riches

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:e2RbF$T3EHA.2676@TK2MSFTNGP12.phx.gbl...
    >I haven't actually tried this, but I thought I'd throw an idea at you.
    >
    > What if you try sending a 401 instead and add the proper WWW-Authenticate
    > header to the response? The header value would depend on what kind of
    > authentication you are using, but that might work.
    >
    > If it does, let me know as I'm curious.
    >
    > Thanks,
    >
    > Joe K.
    >
    > "Ollie" <ollie_riches@hotmail.com> wrote in message
    > news:udUMLuH3EHA.4028@TK2MSFTNGP15.phx.gbl...
    >>I have a requirement for a company intranet where they want to use a
    >>single
    >> sign-on with their windows 2003 domain (AD) so I was thinking of using
    >> windows authentication in the asp.net application so that I can control
    >> functionality by the roles the usr is a member of.
    >>
    >> The question I want to know is can I force the popup windows for
    >> username,
    >> password, domain to appear by 'logging' off the user from the website. I
    >> read some where if I return a "403" in the reponse header it will show
    >> the
    >> dialog and the user will have to enter the information to proceed. I
    >> tried
    >> the following but i only get the 403 error page. So how do I force the
    >> popup
    >> window to appear?
    >>
    >> tried this but only get error page:
    >>
    >> Session.Abandon();
    >> Response.Clear();
    >> Response.StatusCode = 403;
    >> Response.End();
    >>
    >>
    >> Cheers in Advance
    >>
    >> Ollie Riches
    >>
    >>
    >
    >

    Ollie Guest

  7. #6

    Default Re: windows pass through authentication\authorization....

    The best thing to do is sniff the traffic and look at the headers that are
    sent back. You can also use an http proxy debugger like Fiddler for this.

    Generally, if you use Basic auth, it will be something like Basic
    realm=xxxx, and IWA is Negotiate, but I can't remember the exact syntax of
    either, so you should be sure.

    Half of my life is actually building big ASP.NET applications and doing
    security integration work, so as a result, I follow this group too.

    It may not be the case that you can actually clear out the cache on the
    client without running some client code though. The reprompt may be the
    best you can do.

    Let us know if you find more details.

    Joe K.

    "Ollie" <why do they need this!!!!> wrote in message
    news:%23B18GxV3EHA.824@TK2MSFTNGP11.phx.gbl...
    > Joe
    >
    > Thanks for the reply, I tried changing it to "401" and it forced the popup
    > login window to appear and you can enter new credentials, but it does not
    > clear out the credentials from the browser cache so you are still
    > authenticated as the previous user if you hit 'Cancel', I didn't try it
    > with the 'proper' WWW-Authenticate header cos i don't know what that
    > should be - do you know at all ?
    >
    > nice to see you venture out of the AD newsgroups :)
    >
    > Cheers
    >
    > Ollie Riches
    >
    > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    > in message news:e2RbF$T3EHA.2676@TK2MSFTNGP12.phx.gbl...
    >>I haven't actually tried this, but I thought I'd throw an idea at you.
    >>
    >> What if you try sending a 401 instead and add the proper WWW-Authenticate
    >> header to the response? The header value would depend on what kind of
    >> authentication you are using, but that might work.
    >>
    >> If it does, let me know as I'm curious.
    >>
    >> Thanks,
    >>
    >> Joe K.
    >>
    >> "Ollie" <ollie_riches@hotmail.com> wrote in message
    >> news:udUMLuH3EHA.4028@TK2MSFTNGP15.phx.gbl...
    >>>I have a requirement for a company intranet where they want to use a
    >>>single
    >>> sign-on with their windows 2003 domain (AD) so I was thinking of using
    >>> windows authentication in the asp.net application so that I can control
    >>> functionality by the roles the usr is a member of.
    >>>
    >>> The question I want to know is can I force the popup windows for
    >>> username,
    >>> password, domain to appear by 'logging' off the user from the website. I
    >>> read some where if I return a "403" in the reponse header it will show
    >>> the
    >>> dialog and the user will have to enter the information to proceed. I
    >>> tried
    >>> the following but i only get the 403 error page. So how do I force the
    >>> popup
    >>> window to appear?
    >>>
    >>> tried this but only get error page:
    >>>
    >>> Session.Abandon();
    >>> Response.Clear();
    >>> Response.StatusCode = 403;
    >>> Response.End();
    >>>
    >>>
    >>> Cheers in Advance
    >>>
    >>> Ollie Riches
    >>>
    >>>
    >>
    >>
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  8. #7

    Default Re: windows pass through authentication\authorization....

    thsnks Joe will have a look later today , I had considered clearing out the
    client cache and I am aware you can do it with an AcitveX control and you
    can also do it with IE6 SP1 (my preferred solution out of the two) and
    javascript I believe.

    [url]http://support.microsoft.com/kb/q195192/#kb1[/url]

    [url]http://blogs.msdn.com/kclemson/archive/2003/11/17/53911.aspx[/url]

    Cheers

    Ollie Riches

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:%23IzMy6W3EHA.3316@tk2msftngp13.phx.gbl...
    > The best thing to do is sniff the traffic and look at the headers that are
    > sent back. You can also use an http proxy debugger like Fiddler for this.
    >
    > Generally, if you use Basic auth, it will be something like Basic
    > realm=xxxx, and IWA is Negotiate, but I can't remember the exact syntax of
    > either, so you should be sure.
    >
    > Half of my life is actually building big ASP.NET applications and doing
    > security integration work, so as a result, I follow this group too.
    >
    > It may not be the case that you can actually clear out the cache on the
    > client without running some client code though. The reprompt may be the
    > best you can do.
    >
    > Let us know if you find more details.
    >
    > Joe K.
    >
    > "Ollie" <why do they need this!!!!> wrote in message
    > news:%23B18GxV3EHA.824@TK2MSFTNGP11.phx.gbl...
    > > Joe
    > >
    > > Thanks for the reply, I tried changing it to "401" and it forced the
    popup
    > > login window to appear and you can enter new credentials, but it does
    not
    > > clear out the credentials from the browser cache so you are still
    > > authenticated as the previous user if you hit 'Cancel', I didn't try it
    > > with the 'proper' WWW-Authenticate header cos i don't know what that
    > > should be - do you know at all ?
    > >
    > > nice to see you venture out of the AD newsgroups :)
    > >
    > > Cheers
    > >
    > > Ollie Riches
    > >
    > > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    wrote
    > > in message news:e2RbF$T3EHA.2676@TK2MSFTNGP12.phx.gbl...
    > >>I haven't actually tried this, but I thought I'd throw an idea at you.
    > >>
    > >> What if you try sending a 401 instead and add the proper
    WWW-Authenticate
    > >> header to the response? The header value would depend on what kind of
    > >> authentication you are using, but that might work.
    > >>
    > >> If it does, let me know as I'm curious.
    > >>
    > >> Thanks,
    > >>
    > >> Joe K.
    > >>
    > >> "Ollie" <ollie_riches@hotmail.com> wrote in message
    > >> news:udUMLuH3EHA.4028@TK2MSFTNGP15.phx.gbl...
    > >>>I have a requirement for a company intranet where they want to use a
    > >>>single
    > >>> sign-on with their windows 2003 domain (AD) so I was thinking of using
    > >>> windows authentication in the asp.net application so that I can
    control
    > >>> functionality by the roles the usr is a member of.
    > >>>
    > >>> The question I want to know is can I force the popup windows for
    > >>> username,
    > >>> password, domain to appear by 'logging' off the user from the website.
    I
    > >>> read some where if I return a "403" in the reponse header it will show
    > >>> the
    > >>> dialog and the user will have to enter the information to proceed. I
    > >>> tried
    > >>> the following but i only get the 403 error page. So how do I force the
    > >>> popup
    > >>> window to appear?
    > >>>
    > >>> tried this but only get error page:
    > >>>
    > >>> Session.Abandon();
    > >>> Response.Clear();
    > >>> Response.StatusCode = 403;
    > >>> Response.End();
    > >>>
    > >>>
    > >>> Cheers in Advance
    > >>>
    > >>> Ollie Riches
    > >>>
    > >>>
    > >>
    > >>
    > >
    > >
    >
    >

    Ollie Guest

  9. #8

    Default Re: windows pass through authentication\authorization....

    Ah, that's a spiffy new feature. I'm going to hang on to that link.

    Thanks for digging that up.

    Cheers,

    Joe K.

    "Ollie" <ollie_riches@hotmail.com> wrote in message
    news:uzeyq$c3EHA.1188@tk2msftngp13.phx.gbl...
    > thsnks Joe will have a look later today , I had considered clearing out
    > the
    > client cache and I am aware you can do it with an AcitveX control and you
    > can also do it with IE6 SP1 (my preferred solution out of the two) and
    > javascript I believe.
    >
    > [url]http://support.microsoft.com/kb/q195192/#kb1[/url]
    >
    > [url]http://blogs.msdn.com/kclemson/archive/2003/11/17/53911.aspx[/url]
    >
    > Cheers
    >
    > Ollie Riches
    >
    > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    > in message news:%23IzMy6W3EHA.3316@tk2msftngp13.phx.gbl...
    >> The best thing to do is sniff the traffic and look at the headers that
    >> are
    >> sent back. You can also use an http proxy debugger like Fiddler for
    >> this.
    >>
    >> Generally, if you use Basic auth, it will be something like Basic
    >> realm=xxxx, and IWA is Negotiate, but I can't remember the exact syntax
    >> of
    >> either, so you should be sure.
    >>
    >> Half of my life is actually building big ASP.NET applications and doing
    >> security integration work, so as a result, I follow this group too.
    >>
    >> It may not be the case that you can actually clear out the cache on the
    >> client without running some client code though. The reprompt may be the
    >> best you can do.
    >>
    >> Let us know if you find more details.
    >>
    >> Joe K.
    >>
    >> "Ollie" <why do they need this!!!!> wrote in message
    >> news:%23B18GxV3EHA.824@TK2MSFTNGP11.phx.gbl...
    >> > Joe
    >> >
    >> > Thanks for the reply, I tried changing it to "401" and it forced the
    > popup
    >> > login window to appear and you can enter new credentials, but it does
    > not
    >> > clear out the credentials from the browser cache so you are still
    >> > authenticated as the previous user if you hit 'Cancel', I didn't try it
    >> > with the 'proper' WWW-Authenticate header cos i don't know what that
    >> > should be - do you know at all ?
    >> >
    >> > nice to see you venture out of the AD newsgroups :)
    >> >
    >> > Cheers
    >> >
    >> > Ollie Riches
    >> >
    >> > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
    > wrote
    >> > in message news:e2RbF$T3EHA.2676@TK2MSFTNGP12.phx.gbl...
    >> >>I haven't actually tried this, but I thought I'd throw an idea at you.
    >> >>
    >> >> What if you try sending a 401 instead and add the proper
    > WWW-Authenticate
    >> >> header to the response? The header value would depend on what kind of
    >> >> authentication you are using, but that might work.
    >> >>
    >> >> If it does, let me know as I'm curious.
    >> >>
    >> >> Thanks,
    >> >>
    >> >> Joe K.
    >> >>
    >> >> "Ollie" <ollie_riches@hotmail.com> wrote in message
    >> >> news:udUMLuH3EHA.4028@TK2MSFTNGP15.phx.gbl...
    >> >>>I have a requirement for a company intranet where they want to use a
    >> >>>single
    >> >>> sign-on with their windows 2003 domain (AD) so I was thinking of
    >> >>> using
    >> >>> windows authentication in the asp.net application so that I can
    > control
    >> >>> functionality by the roles the usr is a member of.
    >> >>>
    >> >>> The question I want to know is can I force the popup windows for
    >> >>> username,
    >> >>> password, domain to appear by 'logging' off the user from the
    >> >>> website.
    > I
    >> >>> read some where if I return a "403" in the reponse header it will
    >> >>> show
    >> >>> the
    >> >>> dialog and the user will have to enter the information to proceed. I
    >> >>> tried
    >> >>> the following but i only get the 403 error page. So how do I force
    >> >>> the
    >> >>> popup
    >> >>> window to appear?
    >> >>>
    >> >>> tried this but only get error page:
    >> >>>
    >> >>> Session.Abandon();
    >> >>> Response.Clear();
    >> >>> Response.StatusCode = 403;
    >> >>> Response.End();
    >> >>>
    >> >>>
    >> >>> Cheers in Advance
    >> >>>
    >> >>> Ollie Riches
    >> >>>
    >> >>>
    >> >>
    >> >>
    >> >
    >> >
    >>
    >>
    >
    >

    Joe Kaplan \(MVP - ADSI\) 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