473,387 Members | 1,834 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,387 software developers and data experts.

anonymous access and authentication

Hi all,

I have a scenario and maybe you guys can help me out. I'm working with
asp.net 2.0 and have created a website under a website template. My
ultimate goal is to have the website available under "anonymous access"
to the public, but special features available under integrated windows
authentication. In page load, I want to verify the the user is
authenticated, and if so, show the special features. If not, keep them
hidden. In IIS, if I have integrated security checked, but not
"anonymous access", I can pull the user.identity.name. If I have
integrated security and anonymous access checked, I can no longer pull
the user.identity.name, as it returns an empty string. If my memory
serves me correctly, in VS 2003 I was able to accomplish this somehow.
With all of that said, what's going on? Is this a recommended way to
handle this scenario?

Thanks,

Matt

Mar 7 '06 #1
2 1283
DWS
Matt,

specialstuff.visible = page.user.identity.isauthenticated
or
Make a seperate folder for authenticated users, set security for folder
using the website asp.net configuration tool.

Good Luck
DWS
"ma**************@hotmail.com" wrote:
Hi all,

I have a scenario and maybe you guys can help me out. I'm working with
asp.net 2.0 and have created a website under a website template. My
ultimate goal is to have the website available under "anonymous access"
to the public, but special features available under integrated windows
authentication. In page load, I want to verify the the user is
authenticated, and if so, show the special features. If not, keep them
hidden. In IIS, if I have integrated security checked, but not
"anonymous access", I can pull the user.identity.name. If I have
integrated security and anonymous access checked, I can no longer pull
the user.identity.name, as it returns an empty string. If my memory
serves me correctly, in VS 2003 I was able to accomplish this somehow.
With all of that said, what's going on? Is this a recommended way to
handle this scenario?

Thanks,

Matt

Mar 8 '06 #2
DWS,

Thanks for your reply. I agree with what you are saying, but the
problem is that the page is not authenticating.
page.user.identity.isauthenticated is returning false when
authenticated users view the page. I need 'anonymous access' along
with authentication. There in lies my problem.

Mar 10 '06 #3

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

Similar topics

3
by: Glen Scott | last post by:
Hi, I'm writing an ASP app that administers an ISA server remotely. The fact that it's an ISA server isn't my problem I believe. My question? What is the security difference between disabling...
3
by: Mike Hutton | last post by:
Hi, I have tried to keep things simple. Not simple enough, obviously. I have a set of intranet ASP.NET pages which access a SQL back-end through the normal SQLConnection stuff. I want to use...
2
by: Kevin Hoskins | last post by:
Is there anyway to force authentication of the Anonymous user? Here is the situation: I have an ASP.NET page which calls an assembly which requires a certain level of permissions. The page is...
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
10
by: et | last post by:
I have an asp.net program that uses a connection string, using integrated security to connect to a sql database. It runs fine on one server, but the other server gives me the error that "Login...
5
by: jhcorey | last post by:
We're using a third-party treeview and found that the functionality we need works only when we set the web site security to allow Anonymous Access. We also need the user's network id, which we...
2
by: Sorcerdon | last post by:
Hello experts, Im looking for a true expert to solve this. I have a web application which displays a simple select from a table. I have set impersination to true in the web config I have...
2
by: Adnan Al-Ghourabi | last post by:
Hi, We have an application running on IIS 6.0, on a windows 2003 box. The back-end database, a SQL Server 2000, runs on anohter server, windows 2000. We have enabled integrated authentication,...
0
by: =?Utf-8?B?S2V2aW4=?= | last post by:
I have an HttpHandler installed on a server in the GAC that I want to grant public access to across all sites on the server. The problem I have is that some sites use forms authentication. For...
3
by: mzarlenga | last post by:
I have a client / server written in C#/VS2005 that uses WCF. Each component exposes a secure (https:) endpoint with WCF. httpcfg was used to secure the ports with certificates. (Both system use the...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.