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 / March 2007

Tip: Looking for answers? Try searching our database.

Authentication and Web Services

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mythran - 07 Mar 2007 21:43 GMT
I followed some walk-throughs to create a web application using forms
authentication.  All is well.  Basically, what happens is the user requests
a page from the app, the app redirects the user to the logon page, they log
in, the page creates an encrypted FormsAuthenticationTicket and attaches it
to an HttpCookie, then redirects the user back to the original request page.
Now, on when the client requests this page that they are redirected too, in
Application_AuthenticateRequest, we fetch and decrypt the
FormsAuthenticationTicket and create a FormsIdentity and a GenericPrincipal
object from the ticket.

I created a standard, default web service (kept the HelloWorld web method)
and am trying to figure out how to pass the credentials from the web
application to the web service. Optimally, I would like to do this without
passing them as a parameter to every web method in the web service.  Does
anyone have any tips, tricks, or other internet resources they can redirect
me to in order for me to accomplish my goal?

Thanks,
Mythran
Mariano Omar Rodriguez - 08 Mar 2007 04:22 GMT
You could use a SOAP Header.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemwebservicesprotocolssoapheaderclasstopic.asp


>I followed some walk-throughs to create a web application using forms
>authentication.  All is well.  Basically, what happens is the user requests
[quoted text clipped - 15 lines]
> Thanks,
> Mythran
Mythran - 08 Mar 2007 16:47 GMT
> You could use a SOAP Header.
>
[quoted text clipped - 19 lines]
>> Thanks,
>> Mythran

Thanks for the response, we shall look into it and see if it works for us...

Mythran

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.