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="http://asp.net/ApplicationServices/v200"/> </service>

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

 

Related posts

http://blogs.msdn.com/brada/archive/2008/05/03/accessing-the-asp-net-authentication-profile-and-role-service-in-silverlight.aspx

http://blogs.msdn.com/brada/archive/2008/06/23/using-asp-net-authentication-in-a-web-service-with-silverlight.aspx

 

Cheers

Al

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

Published Tuesday, June 30, 2009 9:42 PM by albertpascual

Comments

# Silverlight 2.0 Authentication Services. - Al Pascual ASP.NET Blog

Wednesday, July 01, 2009 4:52 AM by WebDevVote.com

You are voted (great) - Trackback from WebDevVote.com

# re: Silverlight 2.0 Authentication Services.

Tuesday, March 23, 2010 6:43 AM by Latimer

Good morning. I have enjoyed greatly the second blooming. suddenly you find - at the age of 50, say - that a whole new life has opened before you. Help me! Help to find sites on the: Saitek mephisto maestro travel chess computer. I found only this - <a href="www.sv-spellen.de/.../online-stock-trading">online stock trading</a>. Online trading, if you were a currency or conjointly if you have a style. While participating trades and demo, a tri-pack can complement the finer products of life, online trading. Thanks :-). Latimer from Spain.

Leave a Comment

(required) 
(required) 
(optional)
(required)