<?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 : Losing Principal</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Losing Principal</description>
  <pubDate>Wed, 13 May 2026 09:56:16 -700</pubDate>
  <lastBuildDate>Mon, 13 Feb 2012 12:04: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=2479</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>Losing Principal : Hi Guillermo,Re: RPC&amp;#039;s EntityManager.Principal...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=12657#12657</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 13-Feb-2012 at 12:04pm<br /><br />Hi Guillermo,<div><br></div><div>Re: RPC's EntityManager.Principal - I'll file a bug report for this. Thanks for pointing it out.</div><div><br></div><div>Re: Interceptor's EntityManager.Principal - This design is currently being reviewed and is put on high priority.</div>]]>
   </description>
   <pubDate>Mon, 13 Feb 2012 12:04:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=12657#12657</guid>
  </item> 
  <item>
   <title>Losing Principal : Hi.I upgraded my SL project to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=12652#12652</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=825" rel="nofollow">gkneo</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 13-Feb-2012 at 2:37am<br /><br />Hi.<div><br></div><div>I upgraded my SL project to version 5 with devforce 6.1.5, and when I call and RPC method, the entity manager's Principal is null. &nbsp;I will have to change my static &nbsp;methods to pass the rpc's IPrincipal &nbsp;parameter. &nbsp;</div><div>Why did u change that? &nbsp;As you see, a way long before I asked you to include the &nbsp;principal of the Save interceptor into the the entity manager (the rpcs methods did so) . &nbsp;Now i am asking you to do the same for both rpc methods and save interceptor: &nbsp;to fill the entitymanager's Principal property.</div><div><br></div><div><br></div><div>Regards,</div><div><br></div><div>Guillermo</div>]]>
   </description>
   <pubDate>Mon, 13 Feb 2012 02:37:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=12652#12652</guid>
  </item> 
  <item>
   <title>Losing Principal : Thanks for letting me know midnit....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=10461#10461</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 14-Apr-2011 at 11:03am<br /><br /><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-weight: normal; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">Thanks for letting me know midnit. Again, as soon as there's an update, I'll post it here.</div>]]>
   </description>
   <pubDate>Thu, 14 Apr 2011 11:03:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=10461#10461</guid>
  </item> 
  <item>
   <title>Losing Principal : Other than to be rid of afew extra...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=10458#10458</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 14-Apr-2011 at 4:18am<br /><br />Other than to be rid of a&nbsp;few extra lines of code I have no immediate need.]]>
   </description>
   <pubDate>Thu, 14 Apr 2011 04:18:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=10458#10458</guid>
  </item> 
  <item>
   <title>Losing Principal : Hi midnit;Sorry but this is still...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=10454#10454</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 13-Apr-2011 at 10:28am<br /><br />Hi midnit;<div><br></div><div>Sorry but this is still not high priority right now. I just want to make sure that you still have a workaround?</div>]]>
   </description>
   <pubDate>Wed, 13 Apr 2011 10:28:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=10454#10454</guid>
  </item> 
  <item>
   <title>Losing Principal :  Originally posted by DenisKAdditional...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=10438#10438</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 11-Apr-2011 at 6:39pm<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by DenisK</strong></em><br /><br />Additional clarification:<DIV><BR></DIV><DIV>My apologies for the slightly wrong information. The null EntityManager.Principal has nothing to do with it being a base-typed EM or a sub-typed EM, although the statement is still correct in regards to base-typed (server) vs sub-typed (client). We just did not implement it that way. After having a quick word with the lead developer, we found out that it is possible to implement this. I will add this as a feature request for a future release. As of now, I don't have any information which version this will come out but will post more as soon as I do.</DIV></td></tr></table><DIV></DIV><DIV></DIV><DIV></DIV>&nbsp;<DIV></DIV>Any info on when this will show up? I just had to work around it again so I thought I would ask :)]]>
   </description>
   <pubDate>Mon, 11 Apr 2011 18:39:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=10438#10438</guid>
  </item> 
  <item>
   <title>Losing Principal : Btw, thanks for the help. </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=10125#10125</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 08-Mar-2011 at 4:15am<br /><br />Btw, thanks for the help.]]>
   </description>
   <pubDate>Tue, 08 Mar 2011 04:15:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=10125#10125</guid>
  </item> 
  <item>
   <title>Losing Principal : Additional clarification:My apologies...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9961#9961</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 15-Feb-2011 at 1:04pm<br /><br />Additional clarification:<div><br></div><div>My apologies for the slightly wrong information. The null EntityManager.Principal has nothing to do with it being a base-typed EM or a sub-typed EM, although the statement is still correct in regards to base-typed (server) vs sub-typed (client). We just did not implement it that way. After having a quick word with the lead developer, we found out that it is possible to implement this. I will add this as a feature request for a future release. As of now, I don't have any information which version this will come out but will post more as soon as I do.</div>]]>
   </description>
   <pubDate>Tue, 15 Feb 2011 13:04:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9961#9961</guid>
  </item> 
  <item>
   <title>Losing Principal : Hi midnit;The reason for why the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9960#9960</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 15-Feb-2011 at 12:00pm<br /><br />Hi midnit;<div><br></div><div>The reason for why the EntityManager.Principal is null is because that EntityManager is a base type EM and not the sub type EM that you normally use on the client. I have to check with our lead developer to find out whether we can add this as a feature request, i.e. passing the sub-type EM and getting access to the Principal using EntityManager.Principal.</div>]]>
   </description>
   <pubDate>Tue, 15 Feb 2011 12:00:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9960#9960</guid>
  </item> 
  <item>
   <title>Losing Principal : EntityManager.Principal being...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9958#9958</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 15-Feb-2011 at 9:35am<br /><br />EntityManager.Principal being null is one part of my problem, we have code that runs fine on the client as it has a principal but when that code executes on the server and the principal is null...where is it supposed to get the principal from? Our SaveInterceptor does some manipulation before saving and in that sometimes it needs the current user. This was part of our models logic as we assumed the entity being worked with would always have access to the principal of the entitymanager it was in. I can change the code for multiple paths but, as asked by gkneo, is there a reason why the entitymanager.Principal is null?]]>
   </description>
   <pubDate>Tue, 15 Feb 2011 09:35:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9958#9958</guid>
  </item> 
  <item>
   <title>Losing Principal : Hi.Why don&amp;#039;t you just fill...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9942#9942</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=825" rel="nofollow">gkneo</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 14-Feb-2011 at 6:34am<br /><br />Hi.<div><br></div><div>Why don't you just fill interceptor's EntityManager's Principal property with "this.Principal"? &nbsp;I have query/save interceptors and static server methods (with AlloRPC attribute) which call other static methods (in other library) and I have to pass the entity manager and the principal as arguments (as they do some logic with both classes). &nbsp;Is there a technical reason for not filling this property with the current principal?</div><div><br></div><div>Regards,</div><div><br></div><div>Guillermo</div>]]>
   </description>
   <pubDate>Mon, 14 Feb 2011 06:34:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9942#9942</guid>
  </item> 
  <item>
   <title>Losing Principal : Hi midnit;You don&amp;#039;t reference...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9900#9900</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 08-Feb-2011 at 5:31pm<br /><br /><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-weight: normal; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">Hi midnit;<div><br></div><div>You don't reference the EntityManager in the save interceptor to get the principal. The principal is contained inside the EntityServerSaveInterceptor class.</div><div><br></div><div>public class CustomEntityServerSaveInterceptor : EntityServerSaveInterceptor {</div><div><br></div><div><span ="Apple-tab-span" style="white-space: pre; ">	</span>protected override bool AuthorizeSave() {</div><div><span ="Apple-tab-span" style="white-space: pre; ">		</span>var principal = this.Principal;</div><div><span ="Apple-tab-span" style="white-space: pre; ">		</span>var identity = this.Principal.Identity;</div><div><span ="Apple-tab-span" style="white-space: pre; ">		</span>var name = this.Principal.Identity.Name;</div><div><span ="Apple-tab-span" style="white-space: pre; ">		</span></div><div><span ="Apple-tab-span" style="white-space: pre; "><span ="Apple-tab-span" style="white-space: pre; ">		</span><span ="Apple-style-span" style="white-space: normal; ">//This will return null</span></span></div><div><span ="Apple-tab-span" style="white-space: pre; "><span ="Apple-style-span" style="white-space: normal; "><span ="Apple-tab-span" style="white-space: pre; ">		</span>principal = this.EntityManager.Principal;</span></span></div><div><span ="Apple-tab-span" style="white-space: pre; "><span ="Apple-style-span" style="white-space: normal; "><span ="Apple-tab-span" style="white-space: pre; ">	</span>}</span></span></div><div><span ="Apple-tab-span" style="white-space: pre; "><span ="Apple-style-span" style="white-space: normal; ">}</span></span></div></div>]]>
   </description>
   <pubDate>Tue, 08 Feb 2011 17:31:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9900#9900</guid>
  </item> 
  <item>
   <title>Losing Principal : 1. The login manager is cut up...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9893#9893</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 08-Feb-2011 at 8:19am<br /><br /><P>1. The login manager is cut up to try and debug this but is as follows:</P><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>#if !SILVERLIGHT<BR>&nbsp;&nbsp;&nbsp; public class SimpleLoginManager : IEntityLoginManager<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #region IEntityLoginManager Members</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public IPrincipal Login(ILoginCredential credential, EntityManager entityManager)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Work around for DEVART bug<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Devart.Data.Oracle.Entity.OracleEntityProviderServices.TypedNulls = true;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //TransactionSettings.Default = new TransactionSettings(IsolationLevel.ReadCommitted, new TimeSpan(0, 1, 0), false);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (credential == null)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (string.IsNullOrEmpty(AppIdentity.UserId))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Logging.Log("LOGIN ERROR: Credential null, AppIdentity.UserId null.");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AppIdentity.UserId = "SYSTEM";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; credential = new LoginCredential(AppIdentity.UserId, null, null);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (string.IsNullOrEmpty(credential.UserName))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; credential.UserName = "SYSTEM";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (string.IsNullOrEmpty(AppIdentity.UserId)) AppIdentity.UserId = credential.UserName;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //AppIdentity.UserId = credential.UserName;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return new UserBase(new GenericIdentity(credential.UserName), null);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>2. yes if I reference the EntityManager in the saveinterceptor I am getting a null on the principal.</DIV><DIV>&nbsp;</DIV><DIV>4. We are seeing this when we use Coroutine.StartParallel to query when the entitymanager has not finished logging in (but is has been called LoginAsync).</DIV><DIV>&nbsp;</DIV><DIV>I have gotten our entity manager logged in now so I no longer see it hitting the loginmanager with every query. We are still not getting a principal in the saveinterceptor.</DIV>]]>
   </description>
   <pubDate>Tue, 08 Feb 2011 08:19:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9893#9893</guid>
  </item> 
  <item>
   <title>Losing Principal : Hi midnit;1. I was not able to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9857#9857</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 02-Feb-2011 at 12:04am<br /><br />Hi midnit;<div><br></div><div>1. I was not able to repro this. Could you post a code snippet on how you implement your LoginManager as well as your EntityManager.Login call if you do it explicitly?</div><div><br></div><div>2. You should be able to refer to the credentials inside an EntityServerSaveInterceptor using this.Principal.Identity. Are you saying that this returns null?</div><div><br></div><div>3. Every new sub type EntityManager created will need to login once, either implicitly or explicitly, before it can perform a query to the BOS. This is by design. The base type EntityManager on the server does not require this. It is already logged in by default. The server's EntityManager can be referred by calling this.EntityManager.</div><div><br></div><div>4. Any EM should not attempt to login for every query. Could you post a code snippet or a repro for this as well?</div>]]>
   </description>
   <pubDate>Wed, 02 Feb 2011 00:04:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9857#9857</guid>
  </item> 
  <item>
   <title>Losing Principal : We have a very simple loginmanager...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9854#9854</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2479<br /><strong>Posted:</strong> 01-Feb-2011 at 7:30am<br /><br />We have a very simple loginmanager that does indeed return a userbase with a genericidentity that does have a name and isauthenticated...but our EntityManager.Principal.Name = null and IsAuthenticated is always false, IsLoggedIn=true. <DIV>&nbsp;</DIV><DIV>Then, in our EntityServerSaveInterceptor the credentials are always null which is causing us to not know who is saving.</DIV><DIV>&nbsp;</DIV><DIV>Any idea's?</DIV><DIV>&nbsp;</DIV><DIV>6.0.7</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Also, how can I avoid having to log in every EntityManager I create? Both server and client side. As I create entitymanagers they each must login. This is made worse by the above problem because its attempting to log in for every command. If I create an entitymanager on the server (in interceptor) that one must log in also. I am fine with this...but it doesn't know who it is.</DIV><span style="font-size:10px"><br /><br />Edited by midnit - 01-Feb-2011 at 7:36am</span>]]>
   </description>
   <pubDate>Tue, 01 Feb 2011 07:30:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2479&amp;PID=9854#9854</guid>
  </item> 
 </channel>
</rss>