Authentication and Web Services

M

Mythran

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,069
Latest member
SimplyleanKetoReviews

Latest Threads

Top