473,513 Members | 2,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple App Authentication

I have a client with a need for multiple app authentication. The apps are
all asp.net apps but may be on different servers. The user just wants a
single logon and them be free to use five or six different asp.net
applications.

Is this feasible?

--
Regards,
Gary Blakely
May 30 '07 #1
8 1770
You can do this using Forms Authentication against a database provided:
1) The database is acccessible from all the servers.
2) the web sites all have the same machine key (not "autogenerate")
3) The site ID in IIS metabase is the same for each site (e.g. W3Svc/"1" )

There may be a couple other items I forgot, but that's the basics.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"GaryDean" wrote:
I have a client with a need for multiple app authentication. The apps are
all asp.net apps but may be on different servers. The user just wants a
single logon and them be free to use five or six different asp.net
applications.

Is this feasible?

--
Regards,
Gary Blakely
May 30 '07 #2
All of the searches I do for "Forms Authentications against a database" only
yield discussions of using a data base to store UID and PWD. Is there
someplace this capability you speak of is discussed?

--
Regards,
Gary Blakely
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:FF**********************************@microsof t.com...
You can do this using Forms Authentication against a database provided:
1) The database is acccessible from all the servers.
2) the web sites all have the same machine key (not "autogenerate")
3) The site ID in IIS metabase is the same for each site (e.g. W3Svc/"1" )

There may be a couple other items I forgot, but that's the basics.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"GaryDean" wrote:
>I have a client with a need for multiple app authentication. The apps
are
all asp.net apps but may be on different servers. The user just wants a
single logon and them be free to use five or six different asp.net
applications.

Is this feasible?

--
Regards,
Gary Blakely

May 30 '07 #3
That's correct, meaning that the Authenticate method is done using a database
lookup of the user/password (or hashed password) in the database. Are you
looking for sample code to do this? Here's a very old article, but it's
still valid:
http://www.eggheadcafe.com/articles/20020906.asp

-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"GaryDean" wrote:
I have a client with a need for multiple app authentication. The apps are
all asp.net apps but may be on different servers. The user just wants a
single logon and them be free to use five or six different asp.net
applications.

Is this feasible?

--
Regards,
Gary Blakely
May 30 '07 #4
Suggest you read up on Active Directory and Kerberos security.

Assuming this is on an office windows network, its likely that the
users have active directory windows accounts and that there is a
network domain already setup, where all the various servers that the
apps run on belong to a common domain.

If this is so, you can use windows credentials in your apps to
authenticate users. Credentials are established by the user when they
log onto windows and are maintained in the form of tokens.

If your apps run in IIS, you can set the security for the app's
website to require windows authenticated integration on its advanced
directory security tab from the properties menu entry when you right
click a website. Users will have to provide their windows login ID
and password if they are accessing the site externally before it will
run. Otherwise, if they are already logged into the network domain,
IIS will not prompt for credentials and will instead use the
authorization token given to them to identify them.

You can also have programs perform the login on behalf of the user to
a particular app by something similar to:

App.Credentials = System.Net.CredentialCache.DefaultCredentials

Active Directory only verifies the identity of the user; its still the
responsability of your app to decide what to do with the user once
they are verified to be who they claim to be. Active directory users
are usually assigned to arbitrary active directory groups you create.
Your app can check if an identified user belongs to a particular group
of active directory users to determine what permissions the user has.

The advantage of using active directory opposed to building your own
security system is that security is centralized - you can add or
remove a user to the network, your apps, Microsoft applications, and
the internet in a single place with a single command, all at the same
time. The active directory API is not complex, and requires far less
code to use then building and maintaining a seperate custom security
database.

May 30 '07 #5
I guess I'm not very good at making myself understood. let me try again.

I have 5 asp.net applications each doing their own Forms authentication
(maybe by using the same database table but that doesn't matter). So, users
that use several of the applications have to log onto each one separately.
They want a single place to log on to all of the applications - a central
application that will authenticate them for all 5 asp.net applications.
Database is not the issue.

--
Regards,
Gary Blakely
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:3E**********************************@microsof t.com...
That's correct, meaning that the Authenticate method is done using a
database
lookup of the user/password (or hashed password) in the database. Are
you
looking for sample code to do this? Here's a very old article, but it's
still valid:
http://www.eggheadcafe.com/articles/20020906.asp

-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"GaryDean" wrote:
>I have a client with a need for multiple app authentication. The apps
are
all asp.net apps but may be on different servers. The user just wants a
single logon and them be free to use five or six different asp.net
applications.

Is this feasible?

--
Regards,
Gary Blakely

May 30 '07 #6
No, these are web app users and they are not part of any domain nor do we
want them to use Windows Authentication. We want to use Forms
authentication - or at least authentication by UID/PWD.

--
Regards,
Gary Blakely
"Andy" <an****@infotek-consulting.comwrote in message
news:11**********************@p47g2000hsd.googlegr oups.com...
Suggest you read up on Active Directory and Kerberos security.

Assuming this is on an office windows network, its likely that the
users have active directory windows accounts and that there is a
network domain already setup, where all the various servers that the
apps run on belong to a common domain.

If this is so, you can use windows credentials in your apps to
authenticate users. Credentials are established by the user when they
log onto windows and are maintained in the form of tokens.

If your apps run in IIS, you can set the security for the app's
website to require windows authenticated integration on its advanced
directory security tab from the properties menu entry when you right
click a website. Users will have to provide their windows login ID
and password if they are accessing the site externally before it will
run. Otherwise, if they are already logged into the network domain,
IIS will not prompt for credentials and will instead use the
authorization token given to them to identify them.

You can also have programs perform the login on behalf of the user to
a particular app by something similar to:

App.Credentials = System.Net.CredentialCache.DefaultCredentials

Active Directory only verifies the identity of the user; its still the
responsability of your app to decide what to do with the user once
they are verified to be who they claim to be. Active directory users
are usually assigned to arbitrary active directory groups you create.
Your app can check if an identified user belongs to a particular group
of active directory users to determine what permissions the user has.

The advantage of using active directory opposed to building your own
security system is that security is centralized - you can add or
remove a user to the network, your apps, Microsoft applications, and
the internet in a single place with a single command, all at the same
time. The active directory API is not complex, and requires far less
code to use then building and maintaining a seperate custom security
database.



May 30 '07 #7
Hi Gary,

To share authentication cookies across multiple ASP.NET web sites, you
simply ensure use the same machineKey in your web.config files.

1) To test this, you use following tool to create a machineKey and put it
in your web site's web.config files:

http://www.eggheadcafe.com/articles/...eMachineKey.as
px

2) When you have logged in to one web site, navigate to second web site in
the same browser session should identify you as logged. Put a asp:LoginName
control and you will see the user name.
If you need to share authentication cookies across ASP.NET 1.1 and 2.0, you
need to check following article too:

#How To Share Authentication Cookies across ASP.NET V1.1 and ASP.NET V2.0
Applications - ScottGu's Blog
http://weblogs.asp.net/scottgu/archi...10/432851.aspx
Hope this helps.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

May 31 '07 #8
Walter,
WOW. it worked!

thanks,
Gary Blakely

"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:EJ**************@TK2MSFTNGHUB02.phx.gbl...
Hi Gary,

To share authentication cookies across multiple ASP.NET web sites, you
simply ensure use the same machineKey in your web.config files.

1) To test this, you use following tool to create a machineKey and put it
in your web site's web.config files:

http://www.eggheadcafe.com/articles/...eMachineKey.as
px

2) When you have logged in to one web site, navigate to second web site in
the same browser session should identify you as logged. Put a
asp:LoginName
control and you will see the user name.
If you need to share authentication cookies across ASP.NET 1.1 and 2.0,
you
need to check following article too:

#How To Share Authentication Cookies across ASP.NET V1.1 and ASP.NET V2.0
Applications - ScottGu's Blog
http://weblogs.asp.net/scottgu/archi...10/432851.aspx
Hope this helps.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Jun 1 '07 #9

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

Similar topics

11
5264
by: Mike | last post by:
Looking to find any information on how to properly configure multiple instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking for information on how the multiple instance settings...
2
1471
by: Gaurav Vaish | last post by:
Hi, How can I accomplish multiple authentication modes in one application? I have the following scenario: - A company, X, has some employees - Those on rolls have an AD account - Those...
6
539
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
6
5499
by: Andrew Connell | last post by:
I have an app where I want virtually everything password protected/secure except for a single directory. That directory handles some custom authentication and contains my login form, but also some...
1
1064
by: Arun | last post by:
[ How can I Use Multiple Authentication in ASP.NET Let say I have website's "root" folder, root folder contains 3 folders "Folder1" , "folder2", "folder3" before user...
1
3481
by: Rob | last post by:
I have an ASP.NET application that uses forms-based authentication. A user wishes to be able to run multiple sessions of this application simultaneously from the user's client machine. The...
9
2756
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
11
2184
by: xenophon | last post by:
I have a web site with forms authentication and a single logon page. I have 4 subdirectories, each that should be protected by a different username/password combination. For testing purposes, the...
6
2433
by: thomson | last post by:
Hi All, i do hae a solution in which i do have mulitple projects including Web Projects,, Depending on the functionality it gets redirected to different web projects and it is working fine, ...
0
7257
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
7157
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...
1
7098
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
5682
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
5084
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
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1591
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
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.