В реализации для моей службы у меня есть:Настройка WCF Forms Authentication
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
В моем файле .config у меня есть:
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
и:
<system.web.extensions> <scripting> <webServices> <authenticationService enabled="true" requireSSL = "false"/> </webServices> </scripting> </system.web.extensions>
и:
<authentication mode="Forms" />
В методе "Login" для моей службы, у меня есть:
FormsAuthentication.SetAuthCookie(request.UserName, false);
Однако, когда я проверяю:
HttpContext.Current.User.Identity.Name
Это пустая строка. Что мне не хватает?