Web services 获取服务器端silverlight ria服务的当前凭据

Web services 获取服务器端silverlight ria服务的当前凭据,web-services,silverlight,authentication,ria,Web Services,Silverlight,Authentication,Ria,我有Silverlight web应用程序。它包括web客户端(一个程序集)和ria服务的服务器端(另一个程序集)。 webapp的Windows身份验证由standart公共类AuthenticationDomainService:AuthenticationBase提供,工作正常。但在服务器端,我只能获得用户名(登录名) 我需要从服务器端向asmx服务发送WebRequest。我尝试下一步传递当前用户的凭据: webRequest.UseDefaultCredentials = true;

我有Silverlight web应用程序。它包括web客户端(一个程序集)和ria服务的服务器端(另一个程序集)。 webapp的Windows身份验证由standart
公共类AuthenticationDomainService:AuthenticationBase
提供,工作正常。但在服务器端,我只能获得用户名(登录名)

我需要从服务器端向asmx服务发送WebRequest。我尝试下一步传递当前用户的凭据:

webRequest.UseDefaultCredentials = true;

但在一种情况下,它不工作,在第二种情况下,我还需要获得密码

ASMX服务通过Windows身份验证托管在IIS上

如何将当前凭据从ria服务的服务器端传递到WebRequest

webRequest.Credentials = new NetworkCredential("AD login", "AD password");