473,378 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Excluding certian pages from Forms authentication

Hi,

I've a web application and I'm using Forms authentication. My app contains
some pages that can be viewed by everyone and it doesn't require any
authentication or authoization and these pages mostly come at the start of
the application. After a couple of such 'general' pages, the login screen
comes. How do tackle this situation? Advance thanks for throwing any light on
this

--
Samba!
Nov 19 '05 #1
5 1650
Every folder can have its authentication configured separately.
Therefore you can have certain folders that allow anonymous users.

Here's more info:
http://www.dotnetbips.com/displayarticle.aspx?id=117

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Samba" <sr****@dotnet.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Hi,

I've a web application and I'm using Forms authentication. My app contains
some pages that can be viewed by everyone and it doesn't require any
authentication or authoization and these pages mostly come at the start of
the application. After a couple of such 'general' pages, the login screen
comes. How do tackle this situation? Advance thanks for throwing any light
on
this

--
Samba!

Nov 19 '05 #2
Hi,

Thanks very much for the info provided. I'll try as per your suggestion.

--
Samba!

Nov 19 '05 #3
Hi,

You can also try using a Location Tag with Authorization in the Web.config.
Here is a example of the web.config, where the below used pages do not need
authentication.

<location path="Default.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

<location path="GenericErrorPage.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
--

This is an easier approach than having to maintain multiple directories and
multiple web.configs.
Hope this was helpful.

--Vijay R
"Samba" wrote:
Hi,

Thanks very much for the info provided. I'll try as per your suggestion.

--
Samba!

Nov 19 '05 #4
Based on this - if I need a web-site that has a mix of non-secure, secure
without authentication, and secure with authentication pages, I can put the
non-secure and secure without authentication pages on one site and create a
virtual site for the secure with authentication pages and then have the
pages link back and forth? My question in this case is how do I keep the
login information should someone jump from the authenticated site to the
non-authenticated site and back.

Mike Ober.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Every folder can have its authentication configured separately.
Therefore you can have certain folders that allow anonymous users.

Here's more info:
http://www.dotnetbips.com/displayarticle.aspx?id=117

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Samba" <sr****@dotnet.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Hi,

I've a web application and I'm using Forms authentication. My app contains some pages that can be viewed by everyone and it doesn't require any
authentication or authoization and these pages mostly come at the start of the application. After a couple of such 'general' pages, the login screen comes. How do tackle this situation? Advance thanks for throwing any light on
this

--
Samba!



Nov 19 '05 #5
Hi,

You can keep the login information in a windows custom security object
(Windows Identity and Windows Principal) and save the object.
Then restore back the object when the user re-enters the authenticated site.
But the catch is doing this in a secure manner.
That is you have to keep track of a user when he enter the non-auth site and
then re-enters the auth site. you have to be sure that it is the same
user?????
Since this is a problem, it is always safe and easier to have the user login
again if he re-enters the auth site.
Regards
--Vijay R
"Michael D. Ober" wrote:
Based on this - if I need a web-site that has a mix of non-secure, secure
without authentication, and secure with authentication pages, I can put the
non-secure and secure without authentication pages on one site and create a
virtual site for the secure with authentication pages and then have the
pages link back and forth? My question in this case is how do I keep the
login information should someone jump from the authenticated site to the
non-authenticated site and back.

Mike Ober.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Every folder can have its authentication configured separately.
Therefore you can have certain folders that allow anonymous users.

Here's more info:
http://www.dotnetbips.com/displayarticle.aspx?id=117

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Samba" <sr****@dotnet.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Hi,

I've a web application and I'm using Forms authentication. My app contains some pages that can be viewed by everyone and it doesn't require any
authentication or authoization and these pages mostly come at the start of the application. After a couple of such 'general' pages, the login screen comes. How do tackle this situation? Advance thanks for throwing any light on
this

--
Samba!



Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Frank Rizzo | last post by:
Asp.net form authentication is fantastic. I want to place a link on the Login page to a “Register for this web site” page (register.aspx) . How do I exclude register.aspx from Form...
2
by: Eric | last post by:
I am trying to build an app where the stuff in the root directory is open to all, but anything under the Restricted directory requires you to login and I want to use Forms to do it. I'm having...
1
by: John | last post by:
I am using forms authentication for a website. I plan to use some static html pages (generated with a tool) on the site as well. I would like the html pages to be secured using the forms...
4
by: MR. UNDERHILL | last post by:
I want to use forms authentication on my website. Looking at the documentation, I create a sample site for testing. One of my requirements is to ensure that SOME pages required an authenticated...
3
by: Adam J Knight | last post by:
Hi all, I have an app that mostly requires authentication. However there are a couple of pages that don't require authentication.. What do i need in my web.config, to specify these pages...
2
by: Gnic | last post by:
Hi, I am a page that sit on a form authentication directory, but I have 1 or 2 pages that don't require form authentication, also I have a web service class in this directory as well, I am...
3
by: JayD | last post by:
(Not sure whether it is a general aspnet problem or a specific security problem, hence posting it in 2 groups). This will solve for us a number of problems. I have developed a website on my...
3
by: =?Utf-8?B?TWF4IFR1cmF2YW5p?= | last post by:
Hi, Is there any way I can cause a login page to appear, using Forms authentication of course, when access a particular page only. In my case, I am building a site for rental properties. There...
5
by: Nalaka | last post by:
Hi, I have a asp.net application with forms authentication enabled. Users create private (database driven) messages (pages; like a message board) that is only viewed by logged in users. Now I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.