<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Windows auth</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Windows auth</description>
  <pubDate>Wed, 29 Jul 2026 10:10:34 -700</pubDate>
  <lastBuildDate>Thu, 09 Dec 2010 08:28:43 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2356</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Windows auth : Great!Sorry I wasn&amp;#039;t very...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2356&amp;PID=9340#9340</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2356<br /><strong>Posted:</strong> 09-Dec-2010 at 8:28am<br /><br />Great!&nbsp;&nbsp;&nbsp;Sorry I wasn't very clear - as you found neither&nbsp;WindowsPrincipal nor WindowsIdentity are serializable to Silverlight.]]>
   </description>
   <pubDate>Thu, 09 Dec 2010 08:28:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2356&amp;PID=9340#9340</guid>
  </item> 
  <item>
   <title>Windows auth : doh, i figured out the last problem....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2356&amp;PID=9338#9338</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=764" rel="nofollow">mikedfox</a><br /><strong>Subject:</strong> 2356<br /><strong>Posted:</strong> 09-Dec-2010 at 6:06am<br /><br />doh, i figured out the last problem. I didn't folow your directions well enough :)<DIV>&nbsp;</DIV><DIV>I was creating a UserBase from <SPAN style="COLOR: #2b91af">HttpContext</SPAN>.Current.User.Identity</DIV><DIV>&nbsp;</DIV><DIV>Instead I needed to build a UserIdentity from&nbsp; <SPAN style="COLOR: #2b91af">HttpContext</SPAN>.Current.User.Identity.Name, then build the new user base from that.<BR></DIV><DIV>so the final form looks like</DIV><DIV>&nbsp;</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">IPrincipal</SPAN>&nbsp;Login(<SPAN style="COLOR: #2b91af">ILoginCredential</SPAN>&nbsp;credential,&nbsp;<SPAN style="COLOR: #2b91af">EntityManager</SPAN>&nbsp;entityManager)<BR>	{<BR>		<SPAN style="COLOR: blue">var</SPAN>&nbsp;ident&nbsp;=&nbsp;<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">UserIdentity</SPAN>(<SPAN style="COLOR: #2b91af">HttpContext</SPAN>.Current.User.Identity.Name,&nbsp;<SPAN style="COLOR: #a31515">"Custom"</SPAN>,&nbsp;<SPAN style="COLOR: blue">true</SPAN>);<BR>		<SPAN style="COLOR: blue">var</SPAN>&nbsp;principal&nbsp;=&nbsp;<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">UserBase</SPAN>(ident);<BR>		<SPAN style="COLOR: blue">return</SPAN>&nbsp;principal;<BR>	}</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">&nbsp;</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">Thanks</PRE></DIV>]]>
   </description>
   <pubDate>Thu, 09 Dec 2010 06:06:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2356&amp;PID=9338#9338</guid>
  </item> 
  <item>
   <title>Windows auth : I figured out the missing bit...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2356&amp;PID=9337#9337</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=764" rel="nofollow">mikedfox</a><br /><strong>Subject:</strong> 2356<br /><strong>Posted:</strong> 09-Dec-2010 at 5:57am<br /><br />I figured out the missing bit you mentioned. :)<DIV>&nbsp;</DIV><DIV>Once I changed my login to</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">IPrincipal</SPAN>&nbsp;Login(<SPAN style="COLOR: #2b91af">ILoginCredential</SPAN>&nbsp;credential,&nbsp;<SPAN style="COLOR: #2b91af">EntityManager</SPAN>&nbsp;entityManager)<BR>	{<BR>		<SPAN style="COLOR: blue">var</SPAN>&nbsp;principal&nbsp;=&nbsp;<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">UserBase</SPAN>(<SPAN style="COLOR: #2b91af">HttpContext</SPAN>.Current.User.Identity);<BR>		<SPAN style="COLOR: blue">return</SPAN>&nbsp;principal;<BR>	}</PRE></DIV><DIV>&nbsp;</DIV><DIV>I get</DIV><DIV>&nbsp;</DIV><DIV>"&nbsp;The Login could not be completed because the server did not respond.&nbsp; Check that the server is available and contains a clientApplicationType='Silverlight' configuration setting."</DIV><DIV>&nbsp;</DIV><DIV>I changed the serversettings in config to</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: #a31515">serverSettings</SPAN><SPAN style="COLOR: blue">&nbsp;</SPAN><SPAN style="COLOR: red">allowAnonymousLogin</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">false</SPAN>"<SPAN style="COLOR: blue">&nbsp;&nbsp;</SPAN><SPAN style="COLOR: red">loginManagerRequired</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">true</SPAN>"<SPAN style="COLOR: blue">&nbsp;</SPAN><SPAN style="COLOR: red">supportedClientApplicationType</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">Silverlight</SPAN>"<SPAN style="COLOR: blue">/&gt;</SPAN><BR></PRE><PRE style="FONT-FAMILY: c&#111;nsolas">but that didn't help</PRE></DIV>]]>
   </description>
   <pubDate>Thu, 09 Dec 2010 05:57:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2356&amp;PID=9337#9337</guid>
  </item> 
  <item>
   <title>Windows auth : Sorry, we don&amp;#039;t have a sample...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2356&amp;PID=9336#9336</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2356<br /><strong>Posted:</strong> 08-Dec-2010 at 7:18pm<br /><br />Sorry, we don't have a sample showing Windows ASP.NET authentication with a custom IEntityLoginManager.&nbsp; The DRC is a bit misleading, since it's both assuming use ofthe AspNetAuthenticatingLoginManager and jumping ahead to the final result.&nbsp; <DIV>&nbsp;</DIV><DIV>The actual ILoginCredential passed into your Login method will be null, since that's what you passed from the client.&nbsp; What the built-in login manager does, and what you need to do in your custom login manager, is grab the HttpContext.Current.User, which with Windows authentication enabled will be a WindowsPrincipal.&nbsp;&nbsp; In the built-in manager we build a UserBase/UserIdentity from the WindowsPrincipal and return that from the login method.&nbsp; Since the WindowsPrincipal can't be serialized to a Silverlight application you'll need to also build a UserBase/UserIdentity, or some other custom&nbsp;IPrincipal/IIdentity which can be serialized.&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 08 Dec 2010 19:18:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2356&amp;PID=9336#9336</guid>
  </item> 
  <item>
   <title>Windows auth : Do you have any samples that show...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2356&amp;PID=9333#9333</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=764" rel="nofollow">mikedfox</a><br /><strong>Subject:</strong> 2356<br /><strong>Posted:</strong> 08-Dec-2010 at 2:30pm<br /><br />Do you have any samples that show using Windows auth against a custom security table in silverlight.<DIV>&nbsp;</DIV><DIV>my web.config contains</DIV><DIV>&nbsp;</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue">&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">objectServer</SPAN><SPAN style="COLOR: blue">&gt;</SPAN><BR><SPAN style="COLOR: blue">	&lt;</SPAN><SPAN style="COLOR: #a31515">serverSettings</SPAN><SPAN style="COLOR: blue">&nbsp;</SPAN><SPAN style="COLOR: red">allowAnonymousLogin</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">false</SPAN>"<SPAN style="COLOR: blue">&nbsp;&nbsp;/&gt;</SPAN><BR><SPAN style="COLOR: blue">&nbsp;&nbsp;&lt;/</SPAN><SPAN style="COLOR: #a31515">objectServer</SPAN><SPAN style="COLOR: blue">&gt;</SPAN><BR><SPAN style="COLOR: blue">	&nbsp;&nbsp;</SPAN><BR><SPAN style="COLOR: blue">&nbsp;&nbsp;&lt;/</SPAN><SPAN style="COLOR: #a31515">ideablade.configuration</SPAN><SPAN style="COLOR: blue">&gt;</SPAN><BR><SPAN style="COLOR: blue">&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">system.web</SPAN><SPAN style="COLOR: blue">&gt;</SPAN><BR><SPAN style="COLOR: blue">	&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">compilation</SPAN><SPAN style="COLOR: blue">&nbsp;</SPAN><SPAN style="COLOR: red">debug</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">true</SPAN>"<SPAN style="COLOR: blue">&nbsp;</SPAN><SPAN style="COLOR: red">targetFramework</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">4.0</SPAN>"<SPAN style="COLOR: blue">&nbsp;/&gt;</SPAN><BR><SPAN style="COLOR: blue">	&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">authentication</SPAN><SPAN style="COLOR: blue">&nbsp;</SPAN><SPAN style="COLOR: red">mode</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">Windows</SPAN>"<SPAN style="COLOR: blue">&nbsp;/&gt;</SPAN><BR><SPAN style="COLOR: blue">&nbsp;&nbsp;&lt;/</SPAN><SPAN style="COLOR: #a31515">system.web</SPAN><SPAN style="COLOR: blue">&gt;</SPAN><BR><SPAN style="COLOR: blue">	&lt;</SPAN><SPAN style="COLOR: #a31515">system.serviceModel</SPAN><SPAN style="COLOR: blue">&gt;</SPAN><BR><SPAN style="COLOR: blue">		&lt;</SPAN><SPAN style="COLOR: #a31515">serviceHostingEnvironment</SPAN><SPAN style="COLOR: blue">&nbsp;</SPAN><SPAN style="COLOR: red">aspNetCompatibilityEnabled</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">true</SPAN>"<SPAN style="COLOR: blue">/&gt;</SPAN><BR><SPAN style="COLOR: blue">	&lt;/</SPAN><SPAN style="COLOR: #a31515">system.serviceModel</SPAN><SPAN style="COLOR: blue">&gt;</SPAN></PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue"></SPAN>&nbsp;</PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue"><FONT color=#000000>before querying my entitymanager I call </FONT></SPAN></PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue"><PRE style="FONT-FAMILY: c&#111;nsolas">Manager.LoginAsync(<SPAN style="COLOR: blue">null</SPAN>,&nbsp;LoginCallback,&nbsp;<SPAN style="COLOR: blue">null</SPAN>);</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">&nbsp;</PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><FONT color=#000000>and in my <SPAN style="COLOR: #2b91af">LoginManager</SPAN>&nbsp;:&nbsp;<SPAN style="COLOR: #2b91af">IEntityLoginManager</SPAN></FONT></PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: #2b91af"><FONT color=#000000>the credential comes across as null. In the drc, it says that if you use a null in the </FONT></SPAN></PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: #2b91af"><FONT color=#000000>call to LoginAsynch, and the credentials will be your windows credentials, but this doesn't seem to be working.</FONT></SPAN></PRE><SPAN style="COLOR: #2b91af"></SPAN></SPAN></PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue"><SPAN style="COLOR: #2b91af"><FONT color=#000000>I need a sample to follow, or maybe someone can see what I missed in the configuration.</FONT></SPAN><PRE style="FONT-FAMILY: c&#111;nsolas"><BR><BR></PRE></SPAN></PRE></DIV>]]>
   </description>
   <pubDate>Wed, 08 Dec 2010 14:30:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2356&amp;PID=9333#9333</guid>
  </item> 
 </channel>
</rss>