Ask a Question related to ASP.NET Security, Design and Development.
-
Oliver Kharraz #1
Beginners question: Form based authentication
Hello,
the following question may be trivial, but after scrolling documentations on
my screen for hours I'd absolutely appreciate your help:
I want to have two kind of pages on my site: the ones everyone can access
(allow users="*" in the web.config) and those that require forms based
authentication (allow users="?" in the web config). How do I set it up so
that the IIS knows which page uses which setting? In the Visual Basic. net
documentation, it says it can be done page specific, but does not give an
example.
Thank you so much,
Oliver
Oliver Kharraz Guest
-
Newbee question; form authentication
Hello all, I have a problem with retrieving roles. In the login form, I do the following things; - Retrieve roles (string, format like... -
Access shared drive using FORM based authentication
Hi All, I am using FORM BASED authentication for my web based application. It's running under ASPNET account on win2k server and NetworkService... -
authenticate win32 form client with form based authentication web services
(Type your message here) -------------------------------- From: kitchai yong Hi, Can you tell me how i authenticate the win32 form client... -
Beginners question
I am a complete novice at Flash - but thought it a good thing to learn. I am trying to make text move from left to right. I have done this by... -
Form based authentication question
I understand that in the web.config file I can have the following: <location path="MembersOnly"> <system.web> <authorization> <allow... -
Eric Marvets #2
Re: Beginners question: Form based authentication
Choose whichever section will have more pages. For that section, set up the
config file as you normally would. After the normal '</system.web>' add the
following for each page:
<location path="Logon.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
In there, you can specify all the <system.web> settings again for that page.
It is better to configure this by directory, as setting up a <location> for
a number of pages can be difficult to maintain, vs. one web.config file per
subdirectory.
--
Eric Marvets
Principal Consultant
the bang project
<shameless self promotion>
Email [email]sales@bangproject.com[/email] for Information on Our Architecture and
Mentoring Services
</shameless self promotion>
Eric Marvets Guest
-
Oliver Kharraz #3
Re: Beginners question: Form based authentication
Works perfectly!
Thank you,
Oliver
"Eric Marvets" <ericm@bangproject.com> wrote in message
news:uP%23NMmOQEHA.3988@tk2msftngp13.phx.gbl...the> Choose whichever section will have more pages. For that section, set upthe> config file as you normally would. After the normal '</system.web>' addpage.> following for each page:
>
> <location path="Logon.aspx">
> <system.web>
> <authorization>
> <allow users="?"/>
> </authorization>
> </system.web>
> </location>
>
> In there, you can specify all the <system.web> settings again for thatfor>
> It is better to configure this by directory, as setting up a <location>per> a number of pages can be difficult to maintain, vs. one web.config file> subdirectory.
>
> --
> Eric Marvets
> Principal Consultant
>
> the bang project
>
> <shameless self promotion>
>
> Email [email]sales@bangproject.com[/email] for Information on Our Architecture and
> Mentoring Services
>
> </shameless self promotion>
>
>
Oliver Kharraz Guest



Reply With Quote

