<?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 : Anonymous Identity Returned</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Anonymous Identity Returned</description>
  <pubDate>Wed, 13 May 2026 13:59:15 -700</pubDate>
  <lastBuildDate>Mon, 12 Dec 2011 11:05:13 -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=3136</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>Anonymous Identity Returned :   Hi Vincent,If your application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3136&amp;PID=12220#12220</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> 3136<br /><strong>Posted:</strong> 12-Dec-2011 at 11:05am<br /><br />Hi Vincent,<div>&nbsp;</div><div>If your application was built using one of the "Business Application Templates" it will do an automatic login with a null credential when the application starts.&nbsp; This is done to "load" any currently logged in user, or for a persistent cookie.&nbsp; If you don't want to support this feature you can turn it off by removing the code in the Application_Startup method in app.xaml.cs which calls AuthenticationManager.Current.LoadUser.</div><div>&nbsp;</div><div>If your application wasn't built using the BAT, then check your client-side code for any EntityManager constructions.&nbsp; If you have multiple EntityManagers in your code but only explicitly login on one of them, any others will pass null credentials to the login manager when they login.</div>]]>
   </description>
   <pubDate>Mon, 12 Dec 2011 11:05:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3136&amp;PID=12220#12220</guid>
  </item> 
  <item>
   <title>Anonymous Identity Returned : Hi Kimj  Thank you for the reply....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3136&amp;PID=12204#12204</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=791" rel="nofollow">Vincent</a><br /><strong>Subject:</strong> 3136<br /><strong>Posted:</strong> 09-Dec-2011 at 7:59pm<br /><br />Hi Kimj<DIV>&nbsp;</DIV><DIV>Thank you for the reply. Basical in my implementation of&nbsp;<SPAN style="COLOR: #2b91af"><FONT color=#000000 size=3 face="Times New Roman">IEntityLoginManager if I do not allow null credentials, then the application fires an exception when it starts and this happens before a user logs in.</FONT></SPAN></DIV><DIV><SPAN style="COLOR: #2b91af"><FONT color=#000000 size=3 face="Times New Roman"></FONT></SPAN>&nbsp;</DIV><DIV><SPAN style="COLOR: #2b91af"><FONT color=#000000 size=3 face="Times New Roman">Can you please, give me a simple sample code showing how to prevent null credentials without having the application firing exception?</FONT></SPAN></DIV><DIV><SPAN style="COLOR: #2b91af"><FONT color=#000000 size=3 face="Times New Roman"></FONT></SPAN>&nbsp;</DIV><DIV><SPAN style="COLOR: #2b91af"><FONT color=#000000 size=3 face="Times New Roman"></FONT></SPAN>&nbsp;</DIV><DIV><SPAN style="COLOR: #2b91af"><FONT color=#000000 size=3 face="Times New Roman"></FONT></SPAN>&nbsp;</DIV><DIV><SPAN style="COLOR: #2b91af"><FONT color=#000000 size=3 face="Times New Roman">Best Regards,</FONT></SPAN></DIV><DIV><SPAN style="COLOR: #2b91af"><FONT color=#000000 size=3 face="Times New Roman">Vincent</FONT></SPAN></DIV>]]>
   </description>
   <pubDate>Fri, 09 Dec 2011 19:59:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3136&amp;PID=12204#12204</guid>
  </item> 
  <item>
   <title>Anonymous Identity Returned :   Currently, every client-side...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3136&amp;PID=12201#12201</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> 3136<br /><strong>Posted:</strong> 09-Dec-2011 at 11:58am<br /><br />Currently, every client-side EntityManager must login to be authorized before it can execute queries or make other service calls.&nbsp;&nbsp;&nbsp; Because of this the EntityManager will always do an implicit login, even if you don't call Login (or LoginAsync) explicitly.&nbsp; If your login manager allows for empty or null credentials then that could explain how an anonymous login was done.&nbsp; The EntityManager.Principal will always be the one returned from the IEntityLoginManager.<div></div><div>&nbsp;</div><div>If you construct multiple EntityManagers within your application, you can share credentials among them.&nbsp; There are several ways to do this:&nbsp;use the EntityManager copy constructor; use the EM.LinkForAuthentication method; or implement IAuthenticationManager.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 09 Dec 2011 11:58:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3136&amp;PID=12201#12201</guid>
  </item> 
  <item>
   <title>Anonymous Identity Returned :  Hi everybody  In my Silverlight...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3136&amp;PID=12192#12192</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=791" rel="nofollow">Vincent</a><br /><strong>Subject:</strong> 3136<br /><strong>Posted:</strong> 09-Dec-2011 at 12:55am<br /><br /><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT size=3 face="Times New Roman">&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><FONT size=3 face="Times New Roman">Hi everybody</FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face="Times New Roman">&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><FONT size=3 face="Times New Roman">In my Silverlight application, I am implementing <SPAN style="COLOR: #2b91af">IEntityLoginManager </SPAN>to control users’ access. Sometime the 'EntityManager.Principal.Identity.Name' returns anonymous value even when a user logs in successfully with correct user name and password.</FONT></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><o:p><FONT size=3 face="Times New Roman">&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><FONT size=3 face="Times New Roman">Can any one help me to ensure that a correct value is returned from ‘EntityManager.Principal.Identity.Name’ when a user successfully logs in?</FONT></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><o:p><FONT size=3 face="Times New Roman">&nbsp;</FONT></o:p></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><FONT size=3 face="Times New Roman">Best Regards,</FONT></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><FONT size=3><FONT face="Times New Roman">Vincent <o:p></o:p></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt; mso-bidi-font-family: C&#111;nsolas"><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face="Times New Roman">&nbsp;</FONT></o:p></P>]]>
   </description>
   <pubDate>Fri, 09 Dec 2011 00:55:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3136&amp;PID=12192#12192</guid>
  </item> 
 </channel>
</rss>