Hi Steve,
Thanks for using Microsoft MSDN Managed Newsgroup. My name is Peter, and I
will be assisting you on this issue.
First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to pass the form
authentication credential to the webform.( do you mean a WebForm not a
WinForm, am I right?)
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.
Based on my expericen, the user name will be stored in the cookie in client
side, but not the password. So you can restrieve the username by using the
HttpContext.Current.User.Identity.Name property.
HttpContext.User Property
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemWebHttpContextClassUserTopic.asp
Forms-Based Authentication
http://samples.gotdotnet.com/quickstart/aspplus/default.aspx?url=/quickstart
/aspplus/doc/formsauth.aspx
HOW TO: Implement Forms-Based Authentication in Your ASP.NET Application by
Using Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;EN-US;308157#10
Since you will authenticate the username and password in the serverside, so
I think you can restrieve the password from where you store the
username-password pair. So that you can get the password from the username.
Also, why you do not use a unified username-password pair to access the
webservice, so that you will not need to maintian two sets of user
credential data. As long as the user passed the form authentication, we
assume he can access the webservice.
If you have any other concern on this issue, please post here.
Best regards,
Perter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.