473,503 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Authentication in .NET..... pointers

Background.

We have a corporate intranet that is (as much as makes no difference)
entirely IIS web servers & IE browsers. We use a standard Windows
domain logon and use active directory. We also have a "standard" user
(like a guest one) that has few privileges.

Web pages are secured and authenticated by manipulating the permissions
on the files and folders within the web. This has been the situation
for a number of years and is relatively set in stone. We use challenge
response to authenticate for web pages.

If a user logs on as the std user and tries to access a web page to
which they have no access, a login box appears. If they are really a
user with the correct credentials they can enter their userid/passwd at
the prompts. As I understand it, it isn't possible to revoke that
authentication (ie for that user to log off and revert to the std user)
without closing down IE and any other browser windows that the user may
have opened whilst "logged on." Is that correct?

Assuming that is correct, how would we manage the following. Imagine an
operation that needs two users to authorise it at the time it happens
(eg a second nurse witnessing the administration of a medicine in a
hospital, or a superviser check on a large transaction.) How could that
second person's credentials be checked against their windows domain
login and subsequently cancelled? Is there really no way to cancel the
1st user's logon either?

I'm fairly new to this so would appreciate some pointers.... i've
pondered with creating session variable "tokens" and all sorts of
things, but would like a nudge in the right direction before I get too
embroiled in all this as the inability to revoke the authentication
always seems to end up scuppering any idea that I have :(
Thanks
--
Paul
Nov 18 '05 #1
4 1218
I don't know that I could give you a complete solution, but I can give you
some ideas...

Putting your current authentication methods aside, ASP.NET has the ability
to make Principal objects and Identity objects (FormsIdentity for example)
where you can specify different directory and define application processing
permissions throughout your application and grant certain permissions to
certain users. You can also use the same objects to require a Union and/or
Intersection of permission sets for tasks and/or directories. The Union of
permissions may be helpful in requiring two different permission sets to be
required for access to a directory or to perform a certain task.

The trick would be if you need to tie these users to your current
authentication...

Hope that helps get you in the right direction...

-Darrin
"Paul" <pr*****@hotmail.com.invalid> wrote in message
news:z4**************@eyeore.home...
Background.

We have a corporate intranet that is (as much as makes no difference)
entirely IIS web servers & IE browsers. We use a standard Windows
domain logon and use active directory. We also have a "standard" user
(like a guest one) that has few privileges.

Web pages are secured and authenticated by manipulating the permissions
on the files and folders within the web. This has been the situation
for a number of years and is relatively set in stone. We use challenge
response to authenticate for web pages.

If a user logs on as the std user and tries to access a web page to
which they have no access, a login box appears. If they are really a
user with the correct credentials they can enter their userid/passwd at
the prompts. As I understand it, it isn't possible to revoke that
authentication (ie for that user to log off and revert to the std user)
without closing down IE and any other browser windows that the user may
have opened whilst "logged on." Is that correct?

Assuming that is correct, how would we manage the following. Imagine an
operation that needs two users to authorise it at the time it happens
(eg a second nurse witnessing the administration of a medicine in a
hospital, or a superviser check on a large transaction.) How could that
second person's credentials be checked against their windows domain
login and subsequently cancelled? Is there really no way to cancel the
1st user's logon either?

I'm fairly new to this so would appreciate some pointers.... i've
pondered with creating session variable "tokens" and all sorts of
things, but would like a nudge in the right direction before I get too
embroiled in all this as the inability to revoke the authentication
always seems to end up scuppering any idea that I have :(
Thanks
--
Paul

Nov 18 '05 #2
In article <OO**************@tk2msftngp13.phx.gbl>, Darrin J Olson
<da************@sio.midco.net> writes
I don't know that I could give you a complete solution, but I can give you
some ideas...
It's really ideas that I'm looking for....
Putting your current authentication methods aside,
I wish I could... :)
ASP.NET has the ability
to make Principal objects and Identity objects (FormsIdentity for example)
where you can specify different directory and define application processing
permissions throughout your application and grant certain permissions to
certain users. You can also use the same objects to require a Union and/or
Intersection of permission sets for tasks and/or directories. The Union of
permissions may be helpful in requiring two different permission sets to be
required for access to a directory or to perform a certain task.
That sounds interesting.... off to investigate later.....
The trick would be if you need to tie these users to your current
authentication...


Hmmmm..... This is where we've always fallen down. What we don't really
want is for users to have to maintain two separate userid/passwds (some
are bad enough at remembering the one passwd that they've got!!)

Thanks for the pointers.
--
Paul
Nov 18 '05 #3
What I've done for applications such as this is create and manage my own
users, tasks, and roles. I could then assign multiple tasks to a role, and
assign multiple roles to a user. When I create a Principal object, I load
all of the roles for whatever user they signed in as to that Principal
object. Would it be possible to load the names of different Windows User
groups that an authenticated user is part of, and then use those groups as
the different roles to assign to your Principal object??? That way one user
could have a variable number of roles/groups, and you could base permissions
for different tasks by these roles/groups. I beleive the roles are based
only by text in the Principal object.

-Darrin
"Paul" <pa**@hotmail.com.invalid> wrote in message
news:cG**************@eyeore.home...
In article <OO**************@tk2msftngp13.phx.gbl>, Darrin J Olson
<da************@sio.midco.net> writes
I don't know that I could give you a complete solution, but I can give yousome ideas...


It's really ideas that I'm looking for....

Putting your current authentication methods aside,


I wish I could... :)
ASP.NET has the ability
to make Principal objects and Identity objects (FormsIdentity for example)where you can specify different directory and define application processingpermissions throughout your application and grant certain permissions to
certain users. You can also use the same objects to require a Union and/orIntersection of permission sets for tasks and/or directories. The Union ofpermissions may be helpful in requiring two different permission sets to berequired for access to a directory or to perform a certain task.


That sounds interesting.... off to investigate later.....

The trick would be if you need to tie these users to your current
authentication...


Hmmmm..... This is where we've always fallen down. What we don't really
want is for users to have to maintain two separate userid/passwds (some
are bad enough at remembering the one passwd that they've got!!)

Thanks for the pointers.
--
Paul

Nov 18 '05 #4
In article <ur**************@TK2MSFTNGP11.phx.gbl>, Darrin J Olson
<da************@sio.midco.net> writes
Would it be possible to load the names of different Windows User groups
that an authenticated user is part of, and then use those groups as the
different roles to assign to your Principal object???

I found this,

http://support.microsoft.com/default...b;EN-US;326340

which uses Forms authentication via Active Directory. At 1st glance it
seems that it'll achieve what i want. Need to look into this a little
bit more as it (authentication) is all new to me. Does anyone know
offhand whether I could have a generic windows user logged on and use
the above to authenticate another user who could then log off, leaving
the browser still open? Also, you must be able to have different levels
of security on different pages in the same app.? Mustn't you? (See, I
said it was new to me! :) )
--
Paul
Nov 18 '05 #5

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

Similar topics

3
7847
by: Peter Row | last post by:
Hi, I better get the background stuff out the way first, so here goes: - Porting a VB6 webclass app to VB.NET using HttpHandlers and FormsAuthentication - When someone visits my site...
2
1464
by: Marty | last post by:
Something strange is happening on my web site since my hosting provider upgraded to Server 2003 a few weeks ago. I use forms authentication in my asp.net application, with essentially the...
0
2062
by: William F. Zachmann | last post by:
A web site that will run on Windows Server 2003 and IIS 6.0 needs to provide three levels of access, one for the public and two others for two levels of subscribers. This is a port of a prior site...
2
2720
by: pv_kannan | last post by:
I recently found out that my authentication cookies are not expiring even though I have set the persist property to false. As a result, users are able to access the secure websites with indifferent...
2
2290
by: Chad Beckner | last post by:
Hi everyone, I am developing a site in which the root will be set with Anonymous & Basic permissions. Past that I will have an application (directory) in which I will be developing...
1
2414
by: miha.valencic | last post by:
Hi! What are the options for securing remote objects, which are accessible through IIS, when you have an application deployed on the same server, which uses custom Forms authentication? ...
1
1343
by: Enemaerke | last post by:
Hi I've searched through this newsgroup but have been unable to find something to answer my question so I'd better go ahead and post it We are currently developing a web service for processing...
4
2089
by: =?Utf-8?B?Sm9l?= | last post by:
I am working on a web app that required authentication to AD. The authentication is working fine the way I am doing it, but was wondering what the best practice is. My code doesn't actually...
1
5114
by: Chris Shenton | last post by:
Anyone doing python application authentication using RSA SecurID tokens? We have a Pylons app that needs this. I've written code against RSA's API and found the docs terrible and the libraries...
0
7074
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
7273
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,...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.