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 / December 2005

Tip: Looking for answers? Try searching our database.

Passing credentials from website to web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dei1c3 - 06 Dec 2005 17:52 GMT
I have a website that uses ASP.NET 2.0 Cookie-less Forms Authentication.  
Once authenticated, the user has access to a number of pages, most of which
call one or more web methods on a web service I have also created.

The problem I am having is that I am not sure what credentials to send the
web service that it can use to authorize the user by role.  For instance, I
have some web methods that are only intended to be called by a user who has
been authenticated in an Admin role.  I'd like to be able to do the following:

1) Authenticate the user via the Forms Authentication.
2) Have the user navigate to a page and/or perform an action that calls a
web method on my web service.
3) Pass credentials based on the authentication that occurred in step 1 to
the website either as part of the method call or along with it (in a SOAP
header perhaps).
4) Have the web method use the passed credentials to authorize the user's
access to itself.

Steps 1,2, and 4 are already working.  I just don't know what to do with
step 3.

Any help is appreciated.
GCR - 08 Dec 2005 13:02 GMT
Why don't you use WSE 3.0 CTP - the RTM should soon be available?

> I have a website that uses ASP.NET 2.0 Cookie-less Forms Authentication.  
> Once authenticated, the user has access to a number of pages, most of which
[quoted text clipped - 18 lines]
>
> Any help is appreciated.

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.