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

ASP 2.0 Membership API

I am wondering how create a security framework for all our web
application. Is it possible to create a single forms authenication
(cookieless) setting for multiple web applications and web config
files. For example, I want the security web site on our webserver to
serve as a portal for other sites on our server. Example:

www.myFirstWebApp.com
web.config <forms loginUrl="www.myCentralLogin.com/login.aspx ">
www.mySecondWebApp.com
web.config <forms loginUrl="www.myCentralLogin.com/login.aspx ">
Both sites would authenticate using the centrol login web site. Is
this possible if the websites are in different virtual directories or
possiblily different web servers?
Thanks

Feb 26 '06 #1
5 1117
For the most part, ASP.NET applications security is configured in the
web.config and declared in several locations throughout the file.
The page declaration for example is where you would set support for
cookieless authentication which results in the Session ID being written into
the URL of the page. Showing the Session ID in the URL doesn't sit well with
me and we have to take an extra step to learn to encode or encrypt that
value if we really want to expect a reasonbly well defended attack surface.

And yes, it is not only possible to write a single form which may be used to
authenticate multiple web applications it has become incredibly simple. I
mean simple as in something like six steps. That's -- after -- the
web.config file is written to enable the use of the ASP.NET 2.0 Membership,
Roles and Profiles which function together systematically and which is how
you can use that single form to authenticate across application boundaries.
Its all about your mastery of OO principles which IMO are best applied using
C#.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/


<ti*********@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
I am wondering how create a security framework for all our web
application. Is it possible to create a single forms authenication
(cookieless) setting for multiple web applications and web config
files. For example, I want the security web site on our webserver to
serve as a portal for other sites on our server. Example:

www.myFirstWebApp.com
web.config <forms loginUrl="www.myCentralLogin.com/login.aspx ">
www.mySecondWebApp.com
web.config <forms loginUrl="www.myCentralLogin.com/login.aspx ">
Both sites would authenticate using the centrol login web site. Is
this possible if the websites are in different virtual directories or
possiblily different web servers?
Thanks

Feb 26 '06 #2
here's a link to some info on

"Getting Started with ASP.NET 2.0 Membership, Roles and Forms Authentication"
http://weblogs.asp.net/scottgu/archi...24/438953.aspx
shouldn't take more than a month to wade through all this
Feb 26 '06 #3
> Both sites would authenticate using the centrol login web site. Is
this possible if the websites are in different virtual directories or
possiblily different web servers?


If you use the AspNetSqlMembershipProvider, the easiest (simplest) would
probably be to let the web applications share the membership database.

Rune
Feb 26 '06 #4
ROFL

<%= Clinton Gallagher

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
news:Oz**************@TK2MSFTNGP12.phx.gbl...
here's a link to some info on

"Getting Started with ASP.NET 2.0 Membership, Roles and Forms
Authentication"
http://weblogs.asp.net/scottgu/archi...24/438953.aspx
shouldn't take more than a month to wade through all this

Feb 26 '06 #5
I just learned about this from ScottGu's [1] blog...

<%= Clinton Gallagher

[1] http://weblogs.asp.net/scottgu/archi...24/438953.aspx

<ti*********@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
I am wondering how create a security framework for all our web
application. Is it possible to create a single forms authenication
(cookieless) setting for multiple web applications and web config
files. For example, I want the security web site on our webserver to
serve as a portal for other sites on our server. Example:

www.myFirstWebApp.com
web.config <forms loginUrl="www.myCentralLogin.com/login.aspx ">
www.mySecondWebApp.com
web.config <forms loginUrl="www.myCentralLogin.com/login.aspx ">
Both sites would authenticate using the centrol login web site. Is
this possible if the websites are in different virtual directories or
possiblily different web servers?
Thanks

Feb 26 '06 #6

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

Similar topics

9
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. ...
4
by: Pony Tsui | last post by:
I was install the starter kits CLUB, and created a CLUB WEB SITE, this application use the MemberInfo table in club.mdf to store the membership'data, but i can not find out where to define or...
2
by: Balaji | last post by:
Hi All, Can I use more than one membership provider for a given website? I understand only one of them could be default one. If yes, then how to programmatically access the other membership...
3
by: ryan.mclean | last post by:
Hello everyone, I am wondering, can the membership provider be changed at runtime? Perhaps the connectionStringName? I would like to use a different database based on the server the site is...
4
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= | last post by:
I have been having some trouble with implementing a custom Membership Provider. We have a custom data store and business logic that pulls user information. I need some level of functionality...
4
by: =?Utf-8?B?U2FsYW1FbGlhcw==?= | last post by:
Hi, I am trying to play with the Survey manager application provided gracefully by Microsoft at "http://msdn.microsoft.com/vstudio/express/sql/samples/" VB team(so many thanks), compiled the win...
3
by: Glenn | last post by:
My current classic-ASP site has users, projects, roles and the 2.0 membership looks like a perfect fit, but I'm having trouble finding examples of how to have users that belong to different...
1
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the...
1
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the...
8
by: Nick | last post by:
Hi there, Membership.GetNumberOfUsersOnline() works great the first time, then jumps up to the number of users registered in the system. I have tried enumerating through each user individually...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...

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.