473,651 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Identifying calling user with custom authentication

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 requests on a
business domain. We are interested in utilizing a custom authentication
against a user database so we are looking into the WSE 3.0 scenarios
and their samples. Once a user is authenticated the request is handled
if the user has sufficient priviliges and the actions are logged in an
audit trail.

What is puzzling me is how to inter-connect the authentication against
a user database with the actual code processing the request? That is,
how can I programmaticall y in the WebMethod get a hold of the
authenticated user (not the user running the web service on the
machine, but the user which was authenticated against the user
database).

I've looked into the Context object and even the Thread object, but I
can't seem to figure out what I need to do in my custom authentication
method to store some user-id/user object which can be retreived in the
WebMethod....

Any pointers on where to look or am I trying to do something that can't
be done?

Oct 6 '06 #1
1 1348
"Enemaerke" <so************ *@gmail.comwrot e in message
news:11******** **************@ i3g2000cwc.goog legroups.com...
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 requests on a
business domain. We are interested in utilizing a custom authentication
against a user database so we are looking into the WSE 3.0 scenarios
and their samples. Once a user is authenticated the request is handled
if the user has sufficient priviliges and the actions are logged in an
audit trail.

What is puzzling me is how to inter-connect the authentication against
a user database with the actual code processing the request? That is,
how can I programmaticall y in the WebMethod get a hold of the
authenticated user (not the user running the web service on the
machine, but the user which was authenticated against the user
database).

I've looked into the Context object and even the Thread object, but I
can't seem to figure out what I need to do in my custom authentication
method to store some user-id/user object which can be retreived in the
WebMethod....

Any pointers on where to look or am I trying to do something that can't
be done?
I haven't tried this myself, but web services use the ASP.NET framework. So
take a look at Request.User and the IPrincipal and IIdentity interfaces.

John
Oct 6 '06 #2

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

Similar topics

2
1848
by: Carl J. Hixon | last post by:
I am setting up a web site and have questions about security. I would like to use a forum script like phpBB, I would also like to use a CMS package like Mambo, and a file sharing system. Since I will be storing confidential content and the forums are for authorized users only...I'd like all of these packages to use the same user authentication. Furthermore, I'd like to allow users to be able to create an account but not access the files...
0
1648
by: Michael Brandt Lassen | last post by:
Hi gurus This problem is about calling Web services secured by Forms Authentication from Windows Forms user controls embedded in HTML. Using the object tag I’ve managed to include a Windows Forms user control in my HTML page (a .NET alternative to good old ActiveX). I’d like to use my control to call web-services instead of using behaviours (webservices.htc).
1
7306
by: anonymous | last post by:
Hi all, I've been searching the way to achieve the following task. But no luck so far. I have a web site(main site), which requires authentication. This authentication is set at Windows directory level, so user will see the pop up gray box in order to log in rather than custom web page. The username and password are stored at active directory level, thus this is the windows integrated security.
3
4732
by: Webdiyer | last post by:
I want to integrate SecurID two-factor authentication system of the RSASecurity.inc into our asp.net application,but I get into trouble when trying to call the API functions of the ACE Agent,I got an error message saying "Cannot marshal parameter #2: Invalid managed/unmanaged type combination (this value type must be paired with Struct)" when calling "AceGetPinParams(iHandle,ref sd_pin)" function,here's my test code: private static...
6
1627
by: Tapi | last post by:
Hello, I can easily get the Windows login of the current user on my machine by using: User_login = HttpContext.Current.User.Identity.Name() However once, I copy the aspx and corresponding files to the production
3
2681
by: bwmbagus | last post by:
I am getting a strange result from some standard code. Anyone got any ideas?? The puzzle I have a web service calling System.Environment.UserName etc to return the user name from the server. However, I get back NETWORK SERVICE or a null string, rather then the user logged on to the client machine. I have seperate server and client PC's, running XP SP2 and Server 2003. I have tried various server configs, - anonymous and not, with clear...
3
4097
by: Asaf | last post by:
Hello, I have created a web service name "TestWS" and published it to my SBS2003 server that uses IIS6 as a web server. I have set NO anonymous access to TestWS virtual directory and I have created a simple user account from the User template with the name of "MyUser". Problem is that I can't login to \TestWS\Service1.asmx with MyUser account unless I give that user Administrator permission.
10
4497
by: Frankie | last post by:
It appears that System.Random would provide an acceptable means through which to generate a unique value used to identify multiple/concurrent asynchronous tasks. The usage of the value under consideration here is that it is supplied to the AsyncOperationManager.CreateOperation(userSuppliedState) method... with userSuppliedState being, more or less, a taskId. In this case, the userSuppliedState {really taskId} is of the object type,...
4
8220
by: alexandis | last post by:
There are tons of articles about custom role and provider membership, but they just tear me apart and confuse :( The situation is following: I use DB2, so I wrote custom role + membership providers. Membership provider seems to work. I use forms authentication, so as articles say, I need to do some magic to be able to get roles for current user, because microsoft mechanism works only for windows authentication...
0
8347
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8694
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...
1
8457
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6157
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
5605
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
4143
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...
0
4280
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
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

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.