Re: form based authentication and free pages
From: YA (ra294@hotmail.com)
Date: 09/26/02
- Next message: Terry Horner: "Authentication Nightmare"
- Previous message: YA: "Re: form based authentication and free pages"
- In reply to: Ben Amada: "Re: form based authentication and free pages"
- Next in thread: Ben Amada: "Re: form based authentication and free pages"
- Reply: Ben Amada: "Re: form based authentication and free pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "YA" <ra294@hotmail.com> Date: Thu, 26 Sep 2002 16:59:42 +0200
Thanks, your example helped me.
When the user does not have access to a folder it goes back (as it should
be) to the login page. On what condition I show the user "not allowed" label
in the login page ?
Thanks
ra294
"Ben Amada" <ben@powerpick.com> wrote in message
news:uH57U$UZCHA.1724@tkmsftngp10...
> Hi YA,
>
> Yes, you can use the <location> tags to make access restricted to
> authenticated users only for one or more folders in your web application.
> And you can also make one or more folders unrestricted where anyone
> (authenticated and unauthenticated users) can access the pages.
>
> Below is an example Web.Config I'm using. This Web.Config addresses two
> sub-folders off of the root folder. The "protected" sub-folder can only
be
> accessed by authenticated users, and the "unprotected" folder can be
> accessed by anyone. Hope this helps ...
>
> <configuration>
>
> <location path="protected">
> <system.web>
>
> <authorization>
> <deny users="?" />
> </authorization>
>
> </system.web>
> </location>
>
> <location path="unprotected">
> <system.web>
>
> <authorization>
> <allow users="*" />
> </authorization>
>
> </system.web>
> </location>
>
> <system.web>
>
> <authentication mode="Forms">
> <forms
> loginUrl="protected/login.aspx" />
> </authentication>
>
> </system.web>
>
> </configuration>
>
> --
> Ben
>
>
- Next message: Terry Horner: "Authentication Nightmare"
- Previous message: YA: "Re: form based authentication and free pages"
- In reply to: Ben Amada: "Re: form based authentication and free pages"
- Next in thread: Ben Amada: "Re: form based authentication and free pages"
- Reply: Ben Amada: "Re: form based authentication and free pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|