<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using two Membership Providers for ASP.NET logins</title>
	<atom:link href="http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/</link>
	<description>Technology, code, and thoughts by Stevi Deter</description>
	<lastBuildDate>Thu, 15 Dec 2011 15:20:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: David</title>
		<link>http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/comment-page-1/#comment-31594</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 15 Dec 2011 15:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/#comment-31594</guid>
		<description>Hi Steve

This does not seem ot be catching the validation, it just uses the default, what have i  missed?

Hear from you soon

Dave</description>
		<content:encoded><![CDATA[<p>Hi Steve</p>
<p>This does not seem ot be catching the validation, it just uses the default, what have i  missed?</p>
<p>Hear from you soon</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stevi</title>
		<link>http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/comment-page-1/#comment-29151</link>
		<dc:creator>stevi</dc:creator>
		<pubDate>Wed, 02 Nov 2011 17:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/#comment-29151</guid>
		<description>Andrew, I do think your proposed solution has a lot of merit.</description>
		<content:encoded><![CDATA[<p>Andrew, I do think your proposed solution has a lot of merit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AndrewH</title>
		<link>http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/comment-page-1/#comment-29145</link>
		<dc:creator>AndrewH</dc:creator>
		<pubDate>Wed, 02 Nov 2011 15:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/#comment-29145</guid>
		<description>You could also consider moving this down a layer. You could create a custom provider that wraps the logic of trying multiple stores (through the existing providers.)

By creating a custom provider that wraps the existing providers you need not change the user interface code at all. This centralises your logic and can even be reused between systems, if needs be.</description>
		<content:encoded><![CDATA[<p>You could also consider moving this down a layer. You could create a custom provider that wraps the logic of trying multiple stores (through the existing providers.)</p>
<p>By creating a custom provider that wraps the existing providers you need not change the user interface code at all. This centralises your logic and can even be reused between systems, if needs be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert J. Bullock</title>
		<link>http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/comment-page-1/#comment-24275</link>
		<dc:creator>Robert J. Bullock</dc:creator>
		<pubDate>Mon, 25 Jul 2011 19:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/#comment-24275</guid>
		<description>For some reason, I can&#039;t get to the username/password controls in the Login1_Authenticate event... &quot;LoginBox&quot; isn&#039;t there.</description>
		<content:encoded><![CDATA[<p>For some reason, I can&#8217;t get to the username/password controls in the Login1_Authenticate event&#8230; &#8220;LoginBox&#8221; isn&#8217;t there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/comment-page-1/#comment-17115</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 04 Jan 2011 12:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/#comment-17115</guid>
		<description>My login is working but my Page.User.Identity.Name == &quot;&quot;. How do I populate the page User when overriding the Authenticate method like this?</description>
		<content:encoded><![CDATA[<p>My login is working but my Page.User.Identity.Name == &#8220;&#8221;. How do I populate the page User when overriding the Authenticate method like this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stevi</title>
		<link>http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/comment-page-1/#comment-11779</link>
		<dc:creator>stevi</dc:creator>
		<pubDate>Mon, 07 Jun 2010 16:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/#comment-11779</guid>
		<description>Paul,
That&#039;s certainly possible, although I&#039;ve yet to see a case of more than two membership providers. 

Were I to go to n &gt; 2, I&#039;d probably switch to some sort of factory pattern to handle the various unique elements of each membership provider, to avoid a large if/then or case statement in the Login.Authenticate method.</description>
		<content:encoded><![CDATA[<p>Paul,<br />
That&#8217;s certainly possible, although I&#8217;ve yet to see a case of more than two membership providers. </p>
<p>Were I to go to n &gt; 2, I&#8217;d probably switch to some sort of factory pattern to handle the various unique elements of each membership provider, to avoid a large if/then or case statement in the Login.Authenticate method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/comment-page-1/#comment-11778</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Mon, 07 Jun 2010 15:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/#comment-11778</guid>
		<description>I like your idea, but you know, it&#039;d be even more extensible if you just iterate over your providers, rather than calling those two specifically.</description>
		<content:encoded><![CDATA[<p>I like your idea, but you know, it&#8217;d be even more extensible if you just iterate over your providers, rather than calling those two specifically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MGarfield</title>
		<link>http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/comment-page-1/#comment-11234</link>
		<dc:creator>MGarfield</dc:creator>
		<pubDate>Mon, 10 May 2010 19:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/#comment-11234</guid>
		<description>The login code worked perfectly! Thanks for publishing the user login solution. I changed just a few lines but the rest was stright forward.</description>
		<content:encoded><![CDATA[<p>The login code worked perfectly! Thanks for publishing the user login solution. I changed just a few lines but the rest was stright forward.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcm</title>
		<link>http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/comment-page-1/#comment-9923</link>
		<dc:creator>mcm</dc:creator>
		<pubDate>Mon, 01 Mar 2010 07:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/#comment-9923</guid>
		<description>work well! thank you!</description>
		<content:encoded><![CDATA[<p>work well! thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stevi</title>
		<link>http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/comment-page-1/#comment-9820</link>
		<dc:creator>stevi</dc:creator>
		<pubDate>Tue, 23 Feb 2010 22:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/2008/03/20/using-two-membership-providers-for-aspnet-logins/#comment-9820</guid>
		<description>David,
Yes, that&#039;s pretty much what I was doing in the case where this came up. 

The default membership provider was the System.Web.Security.ActiveDirectoryMembershipProvider. 

Only if that attempt to authorize fail would the Login control attempt to use the System.Web.Security.SqlMembershipProvider, which was listed in system.web/membership/providers in the web.config with the name &quot;SecondarySqlMembershipProvider&quot;</description>
		<content:encoded><![CDATA[<p>David,<br />
Yes, that&#8217;s pretty much what I was doing in the case where this came up. </p>
<p>The default membership provider was the System.Web.Security.ActiveDirectoryMembershipProvider. </p>
<p>Only if that attempt to authorize fail would the Login control attempt to use the System.Web.Security.SqlMembershipProvider, which was listed in system.web/membership/providers in the web.config with the name &#8220;SecondarySqlMembershipProvider&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

