Ask a Question related to ASP.NET Security, Design and Development.
-
Ollie #1
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
-
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... -
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... -
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... -
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.... -
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... -
Patrick.O.Ige #2
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
-
Ollie #3
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...off> Hi Ollie,
> To force Windows POPUP ..Go to IIS under Directory Security turnsingle> "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 ausername,> > 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 forthe> > 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 showtried> > dialog and the user will have to enter the information to proceed. Ipopup> > the following but i only get the 403 error page. So how do I force the> > 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
-
Joe Kaplan \(MVP - ADSI\) #4
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
-
Ollie #5
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
-
Joe Kaplan \(MVP - ADSI\) #6
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
-
Ollie #7
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...popup> 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 thenot> > login window to appear and you can enter new credentials, but it doeswrote> > 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>WWW-Authenticate> > 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 propercontrol> >> 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 canI> >>> 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.>> >> >>> 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
-
Joe Kaplan \(MVP - ADSI\) #8
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...> popup>> 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> not>> > login window to appear and you can enter new credentials, but it does> wrote>> > 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>> WWW-Authenticate>> > 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> control>> >> 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> I>> >>> 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.>>>>> >>> 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



Reply With Quote

