473,770 Members | 6,158 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to implement mixed asp.net authentication

Hi,

Here is the issue: we have an ASP.NET application which is protected by Form
authentication. The web application is hosted in the web-farm environment on
multiple web servers. There are several asmx webservices pages used for
inter-server communications, e.g. invalidate the cached items, status
notifications. Since these asmx pages need to access the same application
domain and httpcontext as primary asp.net application, the files have to be
located in virtual directories under application root.

questions:
1- Is there a way to implement mixed authentications in an ASP.NET
application? If this is possible then I can set the primary web application
to use form authentication and helper web services to use windows
authentication
2- If option 1 is not possible, is there any way that application A can
invalidate the application B's cached objects (in this case, application B
is protected by form authentication) ?
3- if form authentication must be used, how can I create credential and pass
it with web services calls (in my case, this is the same application hosted
on multiple server, the authentication ticket created on server A should be
accepted by server B )

Thanks

ILN

Nov 18 '05 #1
1 1737
Hi ILN,

As for the mixed authentication problem you mentioned, here are my
suggestions:

The ASP.NET Web application allow only one Authentication Mode in a single
web application ,so we can't use Mulit Authentication setting in one web
application.
Since WebService can't apply FormsAuthentica tion, so we need to put them in
different web appliations.

As for how to invalid the application cache data in one Web application
from another web application, I think one means is to provide a web page in
the web application which is used to invalide the cache data in the
webapplication. then, another web applicaiton which need to invalide its
cache data can call this page to do so.

And since the webservice is using windows authentication and the web
application is using formsauthentica otin, I think you can provide a
particular login page for the webservice. It can get the username and
password from the Request's Forms Collection(post data) to do the
authentication. Then, in webservice we can use HttpWebRequest class to
programmaticall y login the web application and use HttpWebrequest to call
the InvalidateCache .
How do you think of this?

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #2

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

Similar topics

1
2982
by: Adam Stewart | last post by:
Hi All, We have started to get the strangest errors with our SQL Server. We use Windows and SQL Server authentication, and have done successfully for the last year or so. However last week i had trouble connecting to the enterprise manager with my domain credentials. Users connecting to Query Analyser have no problems when using their SQL Server logins, the issue only seems to arrise when a Domain account is provided for authentication....
0
279
by: DotNetJunkies User | last post by:
In SQL Server 2000, Which authentication mode is more effecient and more secured? Is it Mixed mode or Windows mode. How to implement Windows authentication mode at clients place. If our application uses SQL authentication, and if the client uses Windows authentication, a run-time error will be generated. How to solve this error? --- Posted using Wimdows.net NntpNews Component - Post Made from http://www.DotNetJunkies.com/newsgroups...
4
1862
by: Kulgan | last post by:
Hi All I am trying to switch from Windows to Mixed mode authentication on SQL Server 2000. I am right-clicking the server instance in Enterprise Manager and selecting the correct option from the Security tab. Unfortunately, the change I make does not persist when I click OK. I get no error message, but when I re-open the server properties, the option has returned to being Windows authentication.
5
2977
by: DSISupport | last post by:
Hi, I'm planing to use the enterprise library in a new web project, and I was looking at the Security application block which came by defaul with one provider called database authentication provider. I want to develop new authentication provider that will work with LADP. My question where can I find a documentation and code samples on how to develop a new authentication provider? and how to entegrate this new provider with the...
4
6807
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok. :)
11
3958
by: Ted | last post by:
I have figured out how to use MS SQL Server Management Studio for SQL Server 2005, including how to create users. At my client's offices, on my own LAN (a one man office with two computers in a peer to peer LAN - machines running the professional edition of WXP), and on my colleagues computers (stand alone notebooks), SQL Server was installed allowing both local and remote connections, and support for both Windows and SQL Server...
0
990
by: it98pol | last post by:
I have a webapplication that mixing Forms Authentication with Windows Authentication and using the new membership providers in ASP.NET 2.0. If a user comes from the Intranet a pick the users email from AD and looks if the user exist as a user in my application, if the user exist I do a ”FormsAuthentication.RedirectFromLoginPage(UserName, false);” The problem is that a loose postback if I use the automatic login, but I have postback if I login...
2
2585
by: Fonseca | last post by:
I folks. I Have installed sql server 2005 express and choosed windows authentication on instalation, but i make a mistake and now i need mixed authentication, how can i modify this whithout uninstall and install again the application? thanks for the help.
1
1514
by: camainc | last post by:
Can someone point me to a ~working~ example of using mixed authentication in an ASP.Net 2.0 website? I have been screwing around with this all day and I am no closer to a solution. It seems to me that this sort of thing should just be "built- in." I can't believe that after 10+ years of ASP.Net and IIS that there isn't an integrated solution for this. I know there must be a lot of other developers out there with this need - integrated...
0
10059
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8887
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7416
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6679
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3972
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 we have to send another system
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.