473,387 Members | 1,611 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.

Autorization in ASP.NET

Hello!
Can someone tell me how asp is authorizing (whitch account, when etc... ?
(the moment when IIS is running page).
I looked for a lot of pages, but i'm trying to find something that is really
clear...

I need to know to option (where i must set it etc.)
1) Anonymous account
2) Integrated Windows Authentication

Thanks for help.
Nov 19 '05 #1
2 932
Hi Leszek,

If you want to use Windows authentication, you can set it in Web.config:
<authentication mode="Windows" />

However, if you allow anonymous access, you can't get login user info. Only
when you deny anonymous access:

<authorization>
<deny users="?" /> <!-- Deny anonymous users -->
<allow users="*" /> <!-- Allow all other users -->
</authorization>

You can get login user info by
User.Identity.Name

HTH

Elton Wang
el********@hotmail.com
"Leszek" wrote:
Hello!
Can someone tell me how asp is authorizing (whitch account, when etc... ?
(the moment when IIS is running page).
I looked for a lot of pages, but i'm trying to find something that is really
clear...

I need to know to option (where i must set it etc.)
1) Anonymous account
2) Integrated Windows Authentication

Thanks for help.

Nov 19 '05 #2
Thank you very much!!
Użytkownik "Elton W" <El****@discussions.microsoft.com> napisał w wiadomo¶ci
news:9A**********************************@microsof t.com...
Hi Leszek,

If you want to use Windows authentication, you can set it in Web.config:
<authentication mode="Windows" />

However, if you allow anonymous access, you can't get login user info.
Only
when you deny anonymous access:

<authorization>
<deny users="?" /> <!-- Deny anonymous users -->
<allow users="*" /> <!-- Allow all other users -->
</authorization>

You can get login user info by
User.Identity.Name

HTH

Elton Wang
el********@hotmail.com
"Leszek" wrote:
Hello!
Can someone tell me how asp is authorizing (whitch account, when etc... ?
(the moment when IIS is running page).
I looked for a lot of pages, but i'm trying to find something that is
really
clear...

I need to know to option (where i must set it etc.)
1) Anonymous account
2) Integrated Windows Authentication

Thanks for help.

Nov 19 '05 #3

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

Similar topics

4
by: Pewpew | last post by:
Hello, I'm doing a migration of my web serve from iis 5 to iis 6. I solved nearly all my problems but i can't solve this one with php_dg when id do ImageGif($Im) i get an error imagegif:...
2
by: RobertoF | last post by:
Thanks a lot for every suggestion. I'm a roockies in asp page. I'm trying to improve a internal counter. I'he found the code to manage it (very simple) but have problems with autorization. I...
6
by: SEB | last post by:
How to catch errors thrown by the base class constructor in c# app? Any help greatly appreciated.
10
by: See Sharp | last post by:
Hello all, I have a set of admin pages which are put in a subfolder called admin inside my application folder. I want to limit access to these admin pages. How can I do this? In Linux, I can...
0
by: Rolando Tonin | last post by:
I'm still working on a intranet site builded on IBUYSPORTAL framework. This site is configured with NT-Autorization and running with impersonate = true and local-system. When I want to display...
3
by: Kenneth Keeley | last post by:
Hi, If I setup part of my web site to require users to login can I keep some pages that are related only to that section of the site availble to all users. Example, I have a different section...
1
by: NWx | last post by:
Hi, I implement forms authentication in my application. So I have a login form. Actually I have two custom Web controls, one to login and one to redirect user to Register page Login custom...
0
by: l-touched | last post by:
Please, first review this same subject at May 31st 200 This is more information for you can help me ******In the COM+ Server****** My COM+ Application, in his Security Tag are...
4
luke14free
by: luke14free | last post by:
Hello, I think to have some problem because that code, that is done in order to decide if the page has to have inside the login form (-->user not yet logged) or not(-->user logged). <?php...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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.