Authentication ASP.NET, SilverLight, WCF and Forms - How to configure endpoints?

I have this existing environment:

1) ASP.NET 3.5 web application

2) forms authentication using SqlMembershipProvider

I need to add the following:

1) a Silverlight graphic object embedded in a web page.

2) WCF service to be used:

 a) the Silverlight component embedded in an authenticated 
       web page, as mentioned above

 b) server-based WCF clients with certificate based authentication

My question is: what is the easiest / best way to configure WCF endpoints for a Silverlight object for authentication in a WCF service using the security context of an already registered user (through the page hosting the Silverlight object) without reusing the username / password?

MSDN , , . , . , , , , , . ( , , ?)

, - /cookie, asp.net, - Silverlight, WCF. , WCF .

( "-" 2.b , , , .)

.

+3
2

codemeit , , , , - .

Silverlight asp.net. , , , , - - IIS, , , WCF. , , HttpContext.Current.User.Identity WCF.

SL, , , HttpContext.Current.User.Identity WCF.

+1

WCF aspNet, , .

string currentUserName = HttpContext.Current.User.Identity.Name;
bool isLoggedIn = HttpContext.Current.User.Identity.IsAuthenticated;

, , .

aspNet

web.config

<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

service impl

[AspNetCompatibilityRequirements
  (RequirementsMode=AspNetCompatibilityRequirementsMode.Required)]

basicHttpBinding, WCF.

0

Source: https://habr.com/ru/post/1723495/


All Articles