using windows authentication but having roles specific to the application?

Hi,

I am interesting in finding out if it is possible to use windows authentication for a asp.net application, but where the roles are application specific.

I want to have administrator role for the application, HRIS superuser, and standard user. The default would be a standard user role unless modified otherwise.

Is it possible to use windows authentication, so that a person does not have to sign in separately from already being logged on and authenticated by windows, have the application know who the user is, and have the roles for the application at the application level? ( ie not roles from windows signon)

If so does any one know of an article that shows how this is done?

Thanks

[701 byte] By [lvsund] at [2008-2-10]
# 1

Hi Ivsund,

I am researching along a similar line at this time. I have a desktop app using a local sql server (sql server 2005 express edition). I want the app to be able to sign on the the local server using an application role, even though the user logged into their windows account using windows authentication. I want sql server to be focused on the application role and its authorities rather than the windows authentication.

I will let you know the results of my research. I have a pretty good idea, I think.

Gary

GaryIsMyName at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2


There are a few ways to do this. Interestingly most examples use forms authentication. However, you can use integrated NT authentication as well. See if the following helps:

How To: Use Windows Authentication in ASP.NET 2.0

pclement at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 3
Thanks !- will take a look
lvsund at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...