Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2006

Tip: Looking for answers? Try searching our database.

Identifying calling user with custom authentication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Enemaerke - 06 Oct 2006 09:34 GMT
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 programmatically 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?
John Saunders - 06 Oct 2006 18:36 GMT
> Hi
>
[quoted text clipped - 22 lines]
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.