<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Entries for Galo</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/niners/galo/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Entries for Galo</title><link>http://channel9.msdn.com/Niners/galo/</link></image><description>Entries, comments and threads posted by Galo</description><link>http://channel9.msdn.com/Niners/galo/</link><language>en-us</language><pubDate>Tue, 22 Jul 2008 14:00:04 GMT</pubDate><lastBuildDate>Tue, 22 Jul 2008 14:00:04 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Custom Membership Providers in WCF &amp; Silverlight [Custom Membership Providers in WCF &amp; Silverlight]</title><description>Hi gang,&lt;BR&gt;&lt;BR&gt;I have a question and no one seems to have an awnser, so ofcourse the last thing one tries is the 9th channel :P&lt;BR&gt;Let's cut to it...&lt;BR&gt;&lt;BR&gt;I made a Silverlight application that uwses a service, the service is a WCF service, and as you might know we have a default Membership provider comming with WCF, which are&lt;BR&gt;&lt;BR&gt;
&lt;P&gt;System.Web.ApplicationServices.AuthenticationService&lt;BR&gt;System.Web.ApplicationServices.ProfileService&lt;BR&gt;System.Web.ApplicationServices.RoleService&lt;BR&gt;&lt;BR&gt;So, knowing this, we have a new challenge of creating a user login based on Silverlight &amp;amp; WCF&lt;BR&gt;&lt;BR&gt;AuthenticationServiceClient client = new AuthenticationServiceClient();&lt;BR&gt;client.LoginCompleted += new EventHandler&amp;lt;LoginCompletedEventArgs&amp;gt;(LoginCompleted);&lt;BR&gt;client.LoginAsync(tbxUsername.Text, Password.Value, "", true, tbxUsername.Text);&lt;BR&gt;&lt;BR&gt;Jippee,.. all good IF we only had a locale database running in the App_Data folder, and since im an employee of enterprise X and we have our databases running on a different server which does use the default asp_net authentication im pretty f****d no, hmmm we could create our own custom membership providers configured in the web.config of my service layer, yeehaaa,... let's do that...&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;roleManager enabled="true" defaultProvider="Role"&amp;gt;&lt;BR&gt;&amp;lt;providers&amp;gt;&lt;BR&gt;&amp;lt;add name="Role" type="X.Model.Provider.Role" connectionStringName="SqlXConnectionString" applicationName="/X.GUI"/&amp;gt;&lt;BR&gt;&amp;lt;/providers&amp;gt;&lt;BR&gt;&amp;lt;/roleManager&amp;gt;&lt;BR&gt;&amp;lt;membership defaultProvider="Membership" userIsOnlineTimeWindow="10"&amp;gt;&lt;BR&gt;&amp;lt;providers&amp;gt;&lt;BR&gt;&amp;lt;add name="Membership" type="X.Model.Provider.Membership" connectionStringName="SqlXConnectionString" enablePasswordRetrieval="false" enablePasswordReset="true" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0" passwordStrengthRegularExpression="" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" passwordFormat="Hashed" applicationName="/X.GUI"/&amp;gt;&lt;BR&gt;&amp;lt;/providers&amp;gt;&lt;BR&gt;&amp;lt;/membership&amp;gt;&lt;BR&gt;&amp;lt;profile defaultProvider="Profile" enabled="true"&amp;gt;&amp;lt;providers&amp;gt;&lt;BR&gt;&amp;lt;add name="Profile" type="X.Model.Provider.Profile" connectionStringName="SqlXConnectionString" applicationName="/X.GUI"/&amp;gt;&lt;BR&gt;&amp;lt;/providers&amp;gt;&lt;BR&gt;&amp;lt;properties&amp;gt;&lt;BR&gt;&amp;lt;add name="Color" type="string" defaultValue="Red" /&amp;gt;&lt;BR&gt;&amp;lt;add name="Naam" type="String" serializeAs="String"/&amp;gt;&lt;BR&gt;&amp;lt;add name="Omschrijving" type="String" serializeAs="String"/&amp;gt;&lt;BR&gt;&amp;lt;add name="Intern" type="Boolean" serializeAs="String"/&amp;gt;&lt;BR&gt;&amp;lt;add name="Actief" type="Boolean" serializeAs="String"/&amp;gt;&lt;BR&gt;&amp;lt;add name="MedewerkerNummer" type="String" serializeAs="String"/&amp;gt;&lt;BR&gt;&amp;lt;add name="FunctieNiveau" type="Int32" serializeAs="String"/&amp;gt;&lt;BR&gt;&amp;lt;add name="Direct" type="Boolean" serializeAs="String"/&amp;gt;&lt;BR&gt;&amp;lt;add name="FTE" type="String" serializeAs="String"/&amp;gt;&lt;BR&gt;&amp;lt;add name="PercDirect" type="String" serializeAs="String"/&amp;gt;&lt;BR&gt;&amp;lt;add name="PercIndirect" type="String" serializeAs="String"/&amp;gt;&lt;BR&gt;&amp;lt;/properties&amp;gt;&lt;BR&gt;&amp;lt;/profile&amp;gt;&lt;/P&gt;
&lt;P&gt;So, i try the WSAT throught the ASP.Net Configuration, and yes, i have all my data correctly in front of me, my users, roles and application settings, and one would think he is done... but he aint, cause it aint working, not at all.... i tryt to log in with the right credentials, but the e.Result keeps returning false in the OnCompleted method.&lt;BR&gt;&lt;BR&gt;How come, does anyone know what im looking over or what i've done wrong, your help would be&amp;nbsp;apreciated&lt;BR&gt;&lt;BR&gt;thanks in advance!&lt;BR&gt;&amp;nbsp;&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/416964-Custom-Membership-Providers-in-WCF--Silverlight/'&gt;Custom Membership Providers in WCF &amp; Silverlight&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/416964/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/416964-Custom-Membership-Providers-in-WCF--Silverlight/</comments><link>http://channel9.msdn.com/forums/TechOff/416964-Custom-Membership-Providers-in-WCF--Silverlight/</link><pubDate>Tue, 22 Jul 2008 14:00:04 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/416964-Custom-Membership-Providers-in-WCF--Silverlight/</guid><evnet:views>2013</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/416964/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi gang,I have a question and no one seems to have an awnser, so ofcourse the last thing one tries is the 9th channel :PLet's cut to it...I made a Silverlight application that uwses a service, the service is a WCF service, and as you might know we have a default Membership provider comming with WCF,&amp;#8230;</evnet:previewtext><dc:creator>Galo</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/416964-Custom-Membership-Providers-in-WCF--Silverlight/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/416964/Trackback.aspx</trackback:ping></item></channel></rss>