Silverlight 2.0 Authentication Services.

Message based authentication managed by Silverlight not the browser.

Silverlight can use the browsers cookies and send them to the hosts. When you authenticate with ASP.NET the authentication cookie stored to your computer will be used by Silverlight if you create a Silverlight Authentication Service


Create a service.svc make sure to select the Silverlight Service.

<%@ ServiceHost Language="C#" Service="System.Web.ApplicationServices.AuthenticationService %>


On your web.config add the service to be enable it.

<!-- this enables the WCF AuthenticationService endpoint --> <service name="System.Web.ApplicationServices.AuthenticationService" behaviorConfiguration="AuthenticationServiceTypeBehaviors"> <endpoint contract="System.Web.ApplicationServices.AuthenticationService" binding="basicHttpBinding" bindingConfiguration="userHttp" bindingNamespace=""/> </service>

Then just connect to the service as a service web reference and use the methods for the authentication


Related posts




Follow me in twitter | bookmark me | Subscribe to my feed

No Comments